From 669aa99d3eb6a314ec7f4e5233be27556aa5387c Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 7 Feb 2020 18:59:01 -0800 Subject: [PATCH] Fixes stale data bug in the interpreter --- Source/Interface/Core/Interpreter/InterpreterCore.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Interface/Core/Interpreter/InterpreterCore.cpp b/Source/Interface/Core/Interpreter/InterpreterCore.cpp index e5e1ea5db..8b0bb3f37 100644 --- a/Source/Interface/Core/Interpreter/InterpreterCore.cpp +++ b/Source/Interface/Core/Interpreter/InterpreterCore.cpp @@ -164,6 +164,8 @@ void InterpreterCore::ExecuteCode(FEXCore::Core::InternalThreadState *Thread) { if (IROp->HasDest) { uint64_t AllocSize = OpSize * std::max(static_cast(1), IROp->Elements); DestMap[Node] = AllocateTmpSpace(AllocSize); + // Clear any previous results + memset(GDP, 0, 16); } switch (IROp->Op) {