Skip to content

Commit e1cbd11

Browse files
authored
Ensure that we run late-lowering over ccallable funcs (#47226)
1 parent 0aff6dd commit e1cbd11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/llvm-final-gc-lowering.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ bool FinalLowerGC::runOnFunction(Function &F)
304304
LLVM_DEBUG(dbgs() << "FINAL GC LOWERING: Processing function " << F.getName() << "\n");
305305
// Check availability of functions again since they might have been deleted.
306306
initFunctions(*F.getParent());
307-
if (!pgcstack_getter)
307+
if (!pgcstack_getter && !adoptthread_func)
308308
return false;
309309

310310
// Look for a call to 'julia.get_pgcstack'.

src/llvm-late-gc-lowering.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@ void LateLowerGCFrame::PlaceRootsAndUpdateCalls(std::vector<int> &Colors, State
27202720
bool LateLowerGCFrame::runOnFunction(Function &F, bool *CFGModified) {
27212721
initAll(*F.getParent());
27222722
LLVM_DEBUG(dbgs() << "GC ROOT PLACEMENT: Processing function " << F.getName() << "\n");
2723-
if (!pgcstack_getter)
2723+
if (!pgcstack_getter && !adoptthread_func)
27242724
return CleanupIR(F, nullptr, CFGModified);
27252725

27262726
pgcstack = getPGCstack(F);

0 commit comments

Comments
 (0)