aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-10 23:51:24 +0800
committerchriseth <c@ethdev.com>2015-06-10 23:51:24 +0800
commit7c4324eb5fcee546f809c81b29d2aac5a079d2fc (patch)
tree26c9450b9ea049edd6ca3fa9f540a62c7cd290da
parentbcecae082219abb99157aca5afe9440fac20b516 (diff)
downloaddexon-solidity-7c4324eb5fcee546f809c81b29d2aac5a079d2fc.tar.gz
dexon-solidity-7c4324eb5fcee546f809c81b29d2aac5a079d2fc.tar.zst
dexon-solidity-7c4324eb5fcee546f809c81b29d2aac5a079d2fc.zip
Added missing source locations for new memory management code.
-rw-r--r--libsolidity/Assembly.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/Assembly.cpp b/libsolidity/Assembly.cpp
index ccc4bf81..fd4bbcf6 100644
--- a/libsolidity/Assembly.cpp
+++ b/libsolidity/Assembly.cpp
@@ -105,8 +105,8 @@ BOOST_AUTO_TEST_CASE(location_test)
shared_ptr<string const> n = make_shared<string>("source");
AssemblyItems items = compileContract(sourceCode);
vector<SourceLocation> locations =
- vector<SourceLocation>(11, SourceLocation(2, 75, n)) +
- vector<SourceLocation>(12, SourceLocation(20, 72, n)) +
+ vector<SourceLocation>(17, SourceLocation(2, 75, n)) +
+ vector<SourceLocation>(14, SourceLocation(20, 72, n)) +
vector<SourceLocation>{SourceLocation(42, 51, n), SourceLocation(65, 67, n)} +
vector<SourceLocation>(4, SourceLocation(58, 67, n)) +
vector<SourceLocation>(3, SourceLocation(20, 72, n));