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
+2
View File
@@ -654,6 +654,8 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly)
else if (!var->type()->isValueType())
valueSize = 1;
else
// We cannot use `sizeOnStack()` here because we do not insert the value
// into inline assembly but rather the storage location.
valueSize = 2; // slot number, intra slot offset
}
else if (auto contract = dynamic_cast<ContractDefinition const*>(declaration))