Use index into m_asm->items() to modify free memory push.

This commit is contained in:
Daniel Kirchner
2021-09-15 17:34:40 +02:00
parent abf0e47e0a
commit 0f09b850fc
7 changed files with 24 additions and 17 deletions
-3
View File
@@ -62,9 +62,6 @@ public:
AssemblyItem(u256 _push, langutil::SourceLocation _location = langutil::SourceLocation()):
AssemblyItem(Push, std::move(_push), std::move(_location)) { }
/// Used only for the free memory pointer as "memoryguard". Should probably be replaced by a separate AssemblyItemType.
AssemblyItem(std::shared_ptr<u256> _pushData, langutil::SourceLocation _location = langutil::SourceLocation()):
m_type(Push), m_data(std::move(_pushData)), m_location(std::move(_location)) { }
AssemblyItem(Instruction _i, langutil::SourceLocation _location = langutil::SourceLocation()):
m_type(Operation),
m_instruction(_i),