Fixes stale data bug in the interpreter

This commit is contained in:
Ryan Houdek 2020-02-07 18:59:01 -08:00 committed by Stefanos Kornilios Mitsis Poiitidis
parent d8b3e3bd84
commit 669aa99d3e

View File

@ -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) {