mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Deposit one stack item for non-value types in inline assembly type checking.
This commit is contained in:
parent
5cd01ab7d1
commit
c0961664f9
@ -11,6 +11,7 @@ Bugfixes:
|
||||
* Commandline interface: Do not try creating paths ``.`` and ``..``.
|
||||
* Type system: Fix a crash caused by continuing on fatal errors in the code.
|
||||
* Type system: Disallow arrays with negative length.
|
||||
* Inline assembly: Charge one stack slot for non-value types during analysis.
|
||||
|
||||
### 0.4.9 (2017-01-31)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user