We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69c83f commit 3e8b175Copy full SHA for 3e8b175
llvm/lib/IR/Operator.cpp
@@ -229,8 +229,8 @@ bool GEPOperator::collectOffset(
229
// Insert an initial offset of 0 for V iff none exists already, then
230
// increment the offset by IndexedSize.
231
if (!IndexedSize.isZero()) {
232
- VariableOffsets.insert({V, APInt(BitWidth, 0)});
233
- VariableOffsets[V] += IndexedSize;
+ auto *It = VariableOffsets.insert({V, APInt(BitWidth, 0)}).first;
+ It->second += IndexedSize;
234
}
235
236
return true;
0 commit comments