Review comments and cleanup.

This commit is contained in:
chriseth
2017-04-25 16:49:03 +02:00
parent 3f1f0316c6
commit 83bf34c571
4 changed files with 13 additions and 8 deletions
+5 -2
View File
@@ -591,7 +591,9 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
}
else
solAssert(false, "Invalid declaration type.");
} else {
}
else
{
// lvalue context
auto variable = dynamic_cast<VariableDeclaration const*>(decl);
solAssert(
@@ -606,7 +608,8 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
errinfo_sourceLocation(_inlineAssembly.location()) <<
errinfo_comment("Stack too deep, try removing local variables.")
);
for (unsigned i = 0; i < size; ++i) {
for (unsigned i = 0; i < size; ++i)
{
_assembly.append(swapInstruction(stackDiff));
_assembly.append(Instruction::POP);
}