diff --git a/llvm/lib/CheerpWriter/CheerpWriter.cpp b/llvm/lib/CheerpWriter/CheerpWriter.cpp index 6e5088f1070d..da892dc1abd9 100644 --- a/llvm/lib/CheerpWriter/CheerpWriter.cpp +++ b/llvm/lib/CheerpWriter/CheerpWriter.cpp @@ -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;