From a698a06a54315b41bece470da71e294def839e2f Mon Sep 17 00:00:00 2001 From: Yuri Iozzelli Date: Wed, 7 Aug 2024 14:24:46 +0200 Subject: [PATCH] fix(Writer): returned pointers count as 'escaped' --- llvm/lib/CheerpWriter/CheerpWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;