Compatibility with StackCompressor and StackLimitEvader.

This commit is contained in:
Daniel Kirchner
2021-11-03 12:39:55 +01:00
parent b2c9b69de2
commit 4229369180
5 changed files with 193 additions and 41 deletions
-3
View File
@@ -1069,9 +1069,6 @@ string IRGenerator::dispatchRoutine(ContractDefinition const& _contract)
string IRGenerator::memoryInit(bool _useMemoryGuard)
{
// TODO: Remove once we have made sure it is safe, i.e. after "Yul memory objects lite".
// Also restore the tests removed in the commit that adds this comment.
_useMemoryGuard = false;
// This function should be called at the beginning of the EVM call frame
// and thus can assume all memory to be zero, including the contents of
// the "zero memory area" (the position CompilerUtils::zeroPointer points to).