Skip to content

Commit aa9d02e

Browse files
committed
Pass isDefined parameter to createGlobalVariableExpression()
1 parent f77f338 commit aa9d02e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rustllvm/RustWrapper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,9 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateStaticVariable(
827827
llvm::DIGlobalVariableExpression *VarExpr = Builder->createGlobalVariableExpression(
828828
unwrapDI<DIDescriptor>(Context), Name, LinkageName,
829829
unwrapDI<DIFile>(File), LineNo, unwrapDI<DIType>(Ty), IsLocalToUnit,
830+
#if LLVM_VERSION_GE(10, 0)
831+
/* isDefined */ true,
832+
#endif
830833
InitExpr, unwrapDIPtr<MDNode>(Decl),
831834
#if LLVM_VERSION_GE(8, 0)
832835
/* templateParams */ nullptr,

0 commit comments

Comments
 (0)