We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d77affb + 78107e3 commit d0bae61Copy full SHA for d0bae61
libevmasm/AssemblyItem.h
@@ -85,7 +85,10 @@ class AssemblyItem
85
m_type(Operation),
86
m_instruction(_i),
87
m_debugData(std::move(_debugData))
88
- {}
+ {
89
+ solAssert(_i != Instruction::SWAPN, "Construct via AssemblyItem::swapN");
90
+ solAssert(_i != Instruction::DUPN, "Construct via AssemblyItem::dupN");
91
+ }
92
AssemblyItem(AssemblyItemType _type, u256 _data = 0, langutil::DebugData::ConstPtr _debugData = langutil::DebugData::create()):
93
m_type(_type),
94
0 commit comments