diff --git a/gen/dibuilder.cpp b/gen/dibuilder.cpp index 5475551534..92cb1ddacb 100644 --- a/gen/dibuilder.cpp +++ b/gen/dibuilder.cpp @@ -791,6 +791,9 @@ llvm::DIGlobalVariable ldc::DIBuilder::EmitGlobalVariable(llvm::GlobalVariable * assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCimmutable) && vd->init)); return DBuilder.createGlobalVariable( +#if LDC_LLVM_VER >= 306 + GetCurrentScope(), // context +#endif vd->toChars(), // name #if LDC_LLVM_VER >= 303 mangle(vd), // linkage name