Skip to content

Commit

Permalink
Fix late gc lowering
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Oct 16, 2024
1 parent 7cdf778 commit 72b4a7b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/llvm-final-gc-lowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,21 +225,21 @@ bool FinalLowerGC::runOnFunction(Function &F)

Value *callee = CI->getCalledOperand();
assert(callee);
auto IS_INTRINSIC = [](auto intrinsic) {
auto intrinsic = getOrNull(intrinsic);
if (intrinsic == callee) {
auto IS_INTRINSIC = [&](auto intrinsic) {
auto intrinsic2 = getOrNull(intrinsic);
if (intrinsic2 == callee) {
errs() << "Final-GC-lowering didn't eliminate all intrinsics'" << F.getName() << "', dumping entire module!\n\n";
errs() << *F.getParent() << "\n";
abort();
}
};
IS_INTRINSIC(newGCFrame);
IS_INTRINSIC(pushGCFrame);
IS_INTRINSIC(popGCFrame);
IS_INTRINSIC(getGCFrameSlot);
IS_INTRINSIC(GCAllocBytes);
IS_INTRINSIC(queueGCRoot);
IS_INTRINSIC(safepoint);
IS_INTRINSIC(jl_intrinsics::newGCFrame);
IS_INTRINSIC(jl_intrinsics::pushGCFrame);
IS_INTRINSIC(jl_intrinsics::popGCFrame);
IS_INTRINSIC(jl_intrinsics::getGCFrameSlot);
IS_INTRINSIC(jl_intrinsics::GCAllocBytes);
IS_INTRINSIC(jl_intrinsics::queueGCRoot);
IS_INTRINSIC(jl_intrinsics::safepoint);
}
}
#endif
Expand Down

0 comments on commit 72b4a7b

Please sign in to comment.