Skip to content

Commit fcc7320

Browse files
committed
[LLVM 21] GC2Stack: remove removed removeCallEdgeFor
1 parent 47cb15b commit fcc7320

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gen/passes/GarbageCollect2Stack.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ static void RemoveCall(CallBase *CB, const G2StackAnalysis &A) {
350350

351351
// Remove the runtime call.
352352
if (A.CGNode) {
353+
//FIXME: for LLVM21
354+
#if LDC_LLVM_VER < 2100
353355
A.CGNode->removeCallEdgeFor(*CB);
356+
#endif
354357
}
355358
static_cast<Instruction *>(CB)->eraseFromParent();
356359
}

0 commit comments

Comments
 (0)