Merge pull request #1706 from ethereum/fixasmlocation

Print source location before items.
This commit is contained in:
chriseth 2017-02-24 08:26:45 +01:00 committed by GitHub
commit bec3c6fab6
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ Bugfixes:
* Type system: Fix a crash caused by continuing on fatal errors in the code. * Type system: Fix a crash caused by continuing on fatal errors in the code.
* Type system: Disallow arrays with negative length. * Type system: Disallow arrays with negative length.
* Inline assembly: Charge one stack slot for non-value types during analysis. * Inline assembly: Charge one stack slot for non-value types during analysis.
* Assembly output: Print source location before the operation it refers to instead of after.
### 0.4.9 (2017-01-31) ### 0.4.9 (2017-01-31)

View File

@ -130,8 +130,8 @@ public:
if (!_item.location().isEmpty() && _item.location() != m_location) if (!_item.location().isEmpty() && _item.location() != m_location)
{ {
flush(); flush();
printLocation();
m_location = _item.location(); m_location = _item.location();
printLocation();
} }
if (!( if (!(
_item.canBeFunctional() && _item.canBeFunctional() &&