Skip to content

Commit

Permalink
Pass isDefined parameter to createGlobalVariableExpression()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jan 7, 2020
1 parent f77f338 commit aa9d02e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rustllvm/RustWrapper.cpp
Expand Up @@ -827,6 +827,9 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateStaticVariable(
llvm::DIGlobalVariableExpression *VarExpr = Builder->createGlobalVariableExpression(
unwrapDI<DIDescriptor>(Context), Name, LinkageName,
unwrapDI<DIFile>(File), LineNo, unwrapDI<DIType>(Ty), IsLocalToUnit,
#if LLVM_VERSION_GE(10, 0)
/* isDefined */ true,
#endif
InitExpr, unwrapDIPtr<MDNode>(Decl),
#if LLVM_VERSION_GE(8, 0)
/* templateParams */ nullptr,
Expand Down

0 comments on commit aa9d02e

Please sign in to comment.