diff options
author | chriseth <chris@ethereum.org> | 2017-03-23 02:02:27 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-25 22:49:03 +0800 |
commit | 83bf34c571023cb264c56b3bd791a6fd9ebc3bf2 (patch) | |
tree | d53c3fe163612ef162a2b474b9e6f21fe1576112 /libsolidity/codegen/ContractCompiler.cpp | |
parent | 3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58 (diff) | |
download | dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar.gz dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.tar.zst dexon-solidity-83bf34c571023cb264c56b3bd791a6fd9ebc3bf2.zip |
Review comments and cleanup.
Diffstat (limited to 'libsolidity/codegen/ContractCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index a583f8b4..c035bd1f 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -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); } |