about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDaniel Frampton <dframpto@microsoft.com>2020-10-27 18:05:16 -0700
committerDaniel Frampton <dframpto@microsoft.com>2020-10-27 18:05:16 -0700
commita3bff691344ed94ca5ebab8a043141a0e56931d2 (patch)
tree0da80167714a61ad16a36745f105e8c8d173f232 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent7bade6ef730cff83f3591479a98916920f66decd (diff)
downloadrust-a3bff691344ed94ca5ebab8a043141a0e56931d2.tar.gz
rust-a3bff691344ed94ca5ebab8a043141a0e56931d2.zip
Use unwrapDIPtr because the Scope may be passed as None
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index 9f8ea7f43d8..45b9723c4ae 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -765,7 +765,7 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateTypedef(
     LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Scope) {
   return wrap(Builder->createTypedef(
     unwrap<DIType>(Type), StringRef(Name, NameLen), unwrap<DIFile>(File),
-    LineNo, unwrap<DIScope>(Scope)));
+    LineNo, unwrapDIPtr<DIScope>(Scope)));
 }
 
 extern "C" LLVMMetadataRef LLVMRustDIBuilderCreatePointerType(