Skip to content

Commit a3bff69

Browse files
Use unwrapDIPtr because the Scope may be passed as None
1 parent 7bade6e commit a3bff69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateTypedef(
765765
LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Scope) {
766766
return wrap(Builder->createTypedef(
767767
unwrap<DIType>(Type), StringRef(Name, NameLen), unwrap<DIFile>(File),
768-
LineNo, unwrap<DIScope>(Scope)));
768+
LineNo, unwrapDIPtr<DIScope>(Scope)));
769769
}
770770

771771
extern "C" LLVMMetadataRef LLVMRustDIBuilderCreatePointerType(

0 commit comments

Comments
 (0)