Review comments.

This commit is contained in:
chriseth committed 2017-04-25 16:49:03 +02:00
1 parent 83bf34c571
commit 34717838da
4 files changed
+41 -2

No files matched your search

+4 -2
View File
@@ -270,7 +270,8 @@ void CompilerContext::appendInlineAssembly(
identifierAccess.resolve = [&](
assembly::Identifier const& _identifier,
assembly::IdentifierContext
) {
)
{
auto it = std::find(_localVariables.begin(), _localVariables.end(), _identifier.name);
return it == _localVariables.end() ? size_t(-1) : 1;
};
@@ -278,7 +279,8 @@ void CompilerContext::appendInlineAssembly(
assembly::Identifier const& _identifier,
assembly::IdentifierContext _context,
eth::Assembly& _assembly
) {
)
{
auto it = std::find(_localVariables.begin(), _localVariables.end(), _identifier.name);
solAssert(it != _localVariables.end(), "");
unsigned stackDepth = _localVariables.end() - it;