Deposit one stack item for non-value types in inline assembly type checking.

This commit is contained in:
chriseth
2017-02-20 12:33:22 +01:00
parent 5cd01ab7d1
commit c0961664f9
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -611,7 +611,7 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly)
fatalTypeError(SourceLocation(), "Constant variables not yet implemented for inline assembly.");
if (var->isLocalVariable())
pushes = var->type()->sizeOnStack();
else if (var->type()->isValueType())
else if (!var->type()->isValueType())
pushes = 1;
else
pushes = 2; // slot number, intra slot offset