aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsolidity/inlineasm/AsmAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp
index 53f48819..71416a07 100644
--- a/libsolidity/inlineasm/AsmAnalysis.cpp
+++ b/libsolidity/inlineasm/AsmAnalysis.cpp
@@ -141,6 +141,7 @@ bool AsmAnalyzer::operator()(FunctionalInstruction const& _instr)
success = false;
}
// Parser already checks that the number of arguments is correct.
+ solAssert(instructionInfo(_instr.instruction).args == _instr.arguments.size(), "");
if (!(*this)(_instr.instruction))
success = false;
return success;