mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Review comments and cleanup.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user