Skip to content

Commit

Permalink
fix(Writer): returned pointers count as 'escaped'
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri91 committed Oct 18, 2024
1 parent 7effd8d commit a698a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CheerpWriter/CheerpWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3202,7 +3202,7 @@ CheerpWriter::COMPILE_INSTRUCTION_FEEDBACK CheerpWriter::compileTerminatorInstru
stream << "return ";
assert(k != REGULAR);
if(k==SPLIT_REGULAR)
compilePointerBase(retVal);
compilePointerBase(retVal, /*forEscapingPointer*/true);
else
compilePointerAs(retVal, k);
break;
Expand Down

0 comments on commit a698a06

Please sign in to comment.