LibWasm: Push call results back in reverse order to preserve stack order

This commit is contained in:
Ali Mohammad Pur
2022-04-22 11:02:41 +04:30
committed by Ali Mohammad Pur
parent 6760ea33a0
commit 846b2c8a99

View File

@@ -138,7 +138,7 @@ void BytecodeInterpreter::call_address(Configuration& configuration, FunctionAdd
}
configuration.stack().entries().ensure_capacity(configuration.stack().size() + result.values().size());
for (auto& entry : result.values())
for (auto& entry : result.values().in_reverse())
configuration.stack().entries().unchecked_append(move(entry));
}