From 46d3c2dd3d3101a3d9c0eba485cf4503c8a40890 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 16 Feb 2017 19:58:08 +0100 Subject: [PATCH 1/2] Print source location before items. --- libevmasm/Assembly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index b7859c1f0..f12e8aa87 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -130,8 +130,8 @@ public: if (!_item.location().isEmpty() && _item.location() != m_location) { flush(); - printLocation(); m_location = _item.location(); + printLocation(); } if (!( _item.canBeFunctional() && From de1317331f2607cc1e89779ccfd0ffa812628642 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 24 Feb 2017 08:25:01 +0100 Subject: [PATCH 2/2] Changelog entry. --- Changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Changelog.md b/Changelog.md index 45aaf04a5..1d61f09d5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ Bugfixes: * 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. + * Assembly output: Print source location before the operation it refers to instead of after. ### 0.4.9 (2017-01-31)