File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ class SparseStorage {
6666 }
6767
6868 ValueType load (size_t idx) const {
69- return contains (idx) ? internalStorage.at (idx) : defaultValue;
69+ auto it = internalStorage.find (idx);
70+ return it != internalStorage.end () ? it->second : defaultValue;
7071 }
7172
7273 size_t sizeOfSetRange () const {
Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ const UpdateList &ObjectState::getUpdates() const {
138138void ObjectState::flushForRead () const {
139139 for (const auto &unflushed : unflushedMask.storage ()) {
140140 auto offset = unflushed.first ;
141- assert ( knownSymbolics.load (offset) );
142- updates. extend ( ConstantExpr::create (offset, Expr::Int32),
143- knownSymbolics. load ( offset) );
141+ auto value = knownSymbolics.load (offset);
142+ assert (value);
143+ updates. extend ( ConstantExpr::create ( offset, Expr::Int32), value );
144144 }
145145 unflushedMask.reset (false );
146146}
You can’t perform that action at this time.
0 commit comments