Skip to content

Commit

Permalink
Reset stack height after inline assembly block
Browse files Browse the repository at this point in the history
  • Loading branch information
axic authored and chriseth committed Dec 11, 2016
1 parent 4a11200 commit efd7b4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libsolidity/codegen/CompilerContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ void CompilerContext::appendInlineAssembly(
};

solAssert(assembly::InlineAssemblyStack().parseAndAssemble(*assembly, *m_asm, identifierAccess), "Failed to assemble inline assembly block.");
setStackOffset(startStackHeight);
}

FunctionDefinition const& CompilerContext::resolveVirtualFunction(
Expand Down

0 comments on commit efd7b4b

Please sign in to comment.