aboutsummaryrefslogtreecommitdiffstats
path: root/ControlFlowGraph.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-01-18 17:57:03 +0800
committerchriseth <c@ethdev.com>2016-01-18 17:57:03 +0800
commit96ea3c63f3edc6058d74cfa77828e900c9e9cb6d (patch)
tree9ed5d590056a618fac53999008267698b81e634d /ControlFlowGraph.cpp
parent1b1b6651cd60fcaded8043dc00e61df075fe2e4a (diff)
downloaddexon-solidity-96ea3c63f3edc6058d74cfa77828e900c9e9cb6d.tar
dexon-solidity-96ea3c63f3edc6058d74cfa77828e900c9e9cb6d.tar.gz
dexon-solidity-96ea3c63f3edc6058d74cfa77828e900c9e9cb6d.tar.bz2
dexon-solidity-96ea3c63f3edc6058d74cfa77828e900c9e9cb6d.tar.lz
dexon-solidity-96ea3c63f3edc6058d74cfa77828e900c9e9cb6d.tar.xz
dexon-solidity-96ea3c63f3edc6058d74cfa77828e900c9e9cb6d.tar.zst
dexon-solidity-96ea3c63f3edc6058d74cfa77828e900c9e9cb6d.zip
Fix: Copy empty state.
Diffstat (limited to 'ControlFlowGraph.cpp')
-rw-r--r--ControlFlowGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ControlFlowGraph.cpp b/ControlFlowGraph.cpp
index 1ad54d8c..fc2144c7 100644
--- a/ControlFlowGraph.cpp
+++ b/ControlFlowGraph.cpp
@@ -284,7 +284,7 @@ void ControlFlowGraph::gatherKnowledge()
unknownJumpEncountered = true;
for (auto const& it: m_blocks)
if (it.second.begin < it.second.end && m_items[it.second.begin].type() == Tag)
- workQueue.push_back(WorkQueueItem{it.first, emptyState, set<BlockId>()});
+ workQueue.push_back(WorkQueueItem{it.first, emptyState->copy(), set<BlockId>()});
}
}
else