Skip to content

Commit 0fddfc5

Browse files
authored
Fix recent dynamic-compile regression (#4961)
Fix the undefined `getGlobalContext()` symbol for libldc-jit.so, showing up with CircleCI, introduced in #4950.
1 parent 634521a commit 0fddfc5

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
@@ -135,7 +135,7 @@ Value *ArraySliceCopyOpt::CallOptimizer(Function *Callee, CallInst *CI,
135135
IRBuilder<> &B) {
136136
// Verify we have a reasonable prototype for _d_array_slice_copy
137137
const FunctionType *FT = Callee->getFunctionType();
138-
const llvm::Type *VoidPtrTy = PointerType::get(getGlobalContext(), 0);
138+
const llvm::Type *VoidPtrTy = PointerType::get(Callee->getContext(), 0);
139139
if (Callee->arg_size() != 5 || FT->getReturnType() != B.getVoidTy() ||
140140
FT->getParamType(0) != VoidPtrTy ||
141141
!isa<IntegerType>(FT->getParamType(1)) ||

0 commit comments

Comments
 (0)