diff --git a/core/libs/tests/ScalarCall.cpp b/core/libs/tests/ScalarCall.cpp index 7618926cf6..0ace20ea54 100644 --- a/core/libs/tests/ScalarCall.cpp +++ b/core/libs/tests/ScalarCall.cpp @@ -399,7 +399,8 @@ static std::vector HoistedTableCaller(HoistedShape shape) { static void CheckTableCalleeProgramCounter() { const SwappcInfo swappc{false, 0u, 16u}; - const auto program = RdnaInstructionDecoder{}.Decode(TableCaller()); + const auto caller = TableCaller(); + const auto program = RdnaInstructionDecoder{}.Decode(caller); const auto calls = FindTableCalls(program, swappc); Require(calls.size() == 1u); const std::vector callee{0xbf820001u, 0xbe901f00u, 0xbe80200eu};