We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a20ab9 commit 9128077Copy full SHA for 9128077
llvm/lib/Transforms/Scalar/Float2Int.cpp
@@ -398,9 +398,9 @@ bool Float2IntPass::validateAndTransform(const DataLayout &DL) {
398
}
399
400
Value *Float2IntPass::convert(Instruction *I, Type *ToTy) {
401
- if (ConvertedInsts.contains(I))
+ if (auto It = ConvertedInsts.find(I); It != ConvertedInsts.end())
402
// Already converted this instruction.
403
- return ConvertedInsts[I];
+ return It->second;
404
405
SmallVector<Value*,4> NewOperands;
406
for (Value *V : I->operands()) {
0 commit comments