To be removed: do not force enable yul optimizer, but run stack limit evader in presence of inline assembly.

This commit is contained in:
Daniel Kirchner
2020-10-06 22:20:35 +02:00
parent 3a5cbf248e
commit bda2033dc4
2 changed files with 15 additions and 33 deletions
+2 -4
View File
@@ -659,16 +659,14 @@ string IRGenerator::dispatchRoutine(ContractDefinition const& _contract)
return t.render();
}
string IRGenerator::memoryInit(bool _useMemoryGuard)
string IRGenerator::memoryInit(bool)
{
// 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).
return
Whiskers{
_useMemoryGuard ?
"mstore(<memPtr>, memoryguard(<freeMemoryStart>))" :
"mstore(<memPtr>, <freeMemoryStart>)"
"mstore(<memPtr>, memoryguard(<freeMemoryStart>))"
}
("memPtr", to_string(CompilerUtils::freeMemoryPointer))
(