De-const the empty maps.

Clang 3.8 complains about attempting to default init const objects
without a user-provided constructor.
This commit is contained in:
Matthew Barr 2017-09-22 14:23:05 +10:00
parent 1a81263744
commit 5021d7ab78

View File

@ -851,8 +851,8 @@ u32 countAccelStates(const NGHolder &g, const ReportManager *rm,
// Should have no bearing on accel calculation, so we leave these empty.
const set<NFAVertex> zombies;
const unordered_map<NFAVertex, NFAStateSet> reportSquashMap;
const unordered_map<NFAVertex, NFAStateSet> squashMap;
unordered_map<NFAVertex, NFAStateSet> reportSquashMap;
unordered_map<NFAVertex, NFAStateSet> squashMap;
return countAccelStates(*h, state_ids, repeats, reportSquashMap, squashMap,
tops, zombies, cc);