File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -238,12 +238,13 @@ bool MissingFrameInferrer::inferMissingFrames(
238
238
return false ;
239
239
240
240
// Bail out if caller has no known outgoing call edges.
241
- if (!CallEdgesF.count (From))
241
+ auto It = CallEdgesF.find (From);
242
+ if (It == CallEdgesF.end ())
242
243
return false ;
243
244
244
245
// Done with the inference if the calle is reachable via a single callsite.
245
246
// This may not be accurate but it improves the search throughput.
246
- if (llvm::is_contained (CallEdgesF[From] , ToFRange->Func ))
247
+ if (llvm::is_contained (It-> second , ToFRange->Func ))
247
248
return true ;
248
249
249
250
// Bail out if callee is not tailcall reachable at all.
@@ -253,7 +254,7 @@ bool MissingFrameInferrer::inferMissingFrames(
253
254
Visiting.clear ();
254
255
CurSearchingDepth = 0 ;
255
256
uint64_t NumPaths = 0 ;
256
- for (auto Target : CallEdgesF[From] ) {
257
+ for (auto Target : It-> second ) {
257
258
NumPaths +=
258
259
computeUniqueTailCallPath (Target, ToFRange->Func , UniquePath);
259
260
// Stop analyzing the remaining if we are already seeing more than one
You can’t perform that action at this time.
0 commit comments