Use unwrapDIPtr because the Scope may be passed as None
This commit is contained in:
parent
7bade6ef73
commit
a3bff69134
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue