Fix: Copy empty state.

This commit is contained in:
chriseth 2016-01-18 10:57:03 +01:00
parent 1b1b6651cd
commit 96ea3c63f3

View File

@ -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