Fixes stale data bug in the interpreter

This commit is contained in:
Ryan Houdek authored and Stefanos Kornilios Mitsis Poiitidis committed 2020-03-06 07:56:16 +02:00
1 parent d8b3e3bd84
commit 669aa99d3e
1 file changed
+2
@@ -164,6 +164,8 @@ void InterpreterCore::ExecuteCode(FEXCore::Core::InternalThreadState *Thread) {
if (IROp->HasDest) {
uint64_t AllocSize = OpSize * std::max(static_cast<uint8_t>(1), IROp->Elements);
DestMap[Node] = AllocateTmpSpace(AllocSize);
// Clear any previous results
memset(GDP, 0, 16);
}
switch (IROp->Op) {