Skip to content

Commit 5530839

Browse files
committed
fix-up late GC lowering pass
This variable was accidentally dropped in the change to use the "julia.return_roots" attribute.
1 parent f6762fa commit 5530839

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/llvm-late-gc-lowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,7 @@ State LateLowerGCFrame::LocalScan(Function &F) {
12581258
if (RetRootsAttr.isValid()) {
12591259
size_t return_roots = atol(RetRootsAttr.getValueAsString().data());
12601260
assert(return_roots);
1261+
HasDefBefore = true;
12611262
auto gc_allocas = FindSretAllocas(CI->getArgOperand(i)->stripInBoundsOffsets());
12621263
// We know that with the right optimizations we can forward a sret directly from an argument
12631264
// This hasn't been seen without adding IPO effects to julia functions but it's possible we need to handle that too

0 commit comments

Comments
 (0)