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 {
66
66
}
67
67
68
68
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;
70
71
}
71
72
72
73
size_t sizeOfSetRange () const {
Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ const UpdateList &ObjectState::getUpdates() const {
138
138
void ObjectState::flushForRead () const {
139
139
for (const auto &unflushed : unflushedMask.storage ()) {
140
140
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 );
144
144
}
145
145
unflushedMask.reset (false );
146
146
}
You can’t perform that action at this time.
0 commit comments