Skip to content

Commit 09b5f7d

Browse files
committed
Fix recent dynamic-compile regression
Fix the undefined `getGlobalContext()` symbol for libldc-jit.so, showing up with CircleCI, introduced in ldc-developers#4950.
1 parent 46bbe8b commit 09b5f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen/passes/SimplifyDRuntimeCalls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Value *ArraySliceCopyOpt::CallOptimizer(Function *Callee, CallInst *CI,
184184
IRBuilder<> &B) {
185185
// Verify we have a reasonable prototype for _d_array_slice_copy
186186
const FunctionType *FT = Callee->getFunctionType();
187-
const llvm::Type *VoidPtrTy = PointerType::get(getGlobalContext(), 0);
187+
const llvm::Type *VoidPtrTy = PointerType::get(Callee->getContext(), 0);
188188
if (Callee->arg_size() != 5 || FT->getReturnType() != B.getVoidTy() ||
189189
FT->getParamType(0) != VoidPtrTy ||
190190
!isa<IntegerType>(FT->getParamType(1)) ||

0 commit comments

Comments
 (0)