File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -504,8 +504,9 @@ class CallAnalyzer : public InstVisitor<CallAnalyzer, bool> {
504
504
InlineResult analyze ();
505
505
506
506
std::optional<Constant *> getSimplifiedValue (Instruction *I) {
507
- if (SimplifiedValues.contains (I))
508
- return SimplifiedValues[I];
507
+ auto It = SimplifiedValues.find (I);
508
+ if (It != SimplifiedValues.end ())
509
+ return It->second ;
509
510
return std::nullopt;
510
511
}
511
512
@@ -1129,8 +1130,9 @@ class InlineCostCallAnalyzer final : public CallAnalyzer {
1129
1130
void print (raw_ostream &OS);
1130
1131
1131
1132
std::optional<InstructionCostDetail> getCostDetails (const Instruction *I) {
1132
- if (InstructionCostDetailMap.contains (I))
1133
- return InstructionCostDetailMap[I];
1133
+ auto It = InstructionCostDetailMap.find (I);
1134
+ if (It != InstructionCostDetailMap.end ())
1135
+ return It->second ;
1134
1136
return std::nullopt;
1135
1137
}
1136
1138
You can’t perform that action at this time.
0 commit comments