diff options
| author | Daniel Frampton <dframpto@microsoft.com> | 2020-10-27 18:05:16 -0700 |
|---|---|---|
| committer | Daniel Frampton <dframpto@microsoft.com> | 2020-10-27 18:05:16 -0700 |
| commit | a3bff691344ed94ca5ebab8a043141a0e56931d2 (patch) | |
| tree | 0da80167714a61ad16a36745f105e8c8d173f232 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 7bade6ef730cff83f3591479a98916920f66decd (diff) | |
| download | rust-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.cpp | 2 |
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( |
