File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -945,7 +945,8 @@ DILocalScope *DILocalScope::cloneScopeForSubprogram(
945
945
946
946
for (DIScope *Scope = &RootScope; !isa<DISubprogram>(Scope);
947
947
Scope = Scope->getScope ()) {
948
- if (auto It = Cache.find (Scope); It != Cache.end ()) {
948
+ auto It = Cache.find (Scope);
949
+ if (It != Cache.end ()) {
949
950
CachedResult = cast<DIScope>(It->second );
950
951
break ;
951
952
}
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ DebugLoc DebugLoc::replaceInlinedAtSubprogram(
76
76
// Collect the inline chain, stopping if we find a location that has already
77
77
// been processed.
78
78
for (DILocation *Loc = RootLoc; Loc; Loc = Loc->getInlinedAt ()) {
79
- if (auto It = Cache.find (Loc); It != Cache.end ()) {
79
+ auto It = Cache.find (Loc);
80
+ if (It != Cache.end ()) {
80
81
CachedResult = cast<DILocation>(It->second );
81
82
break ;
82
83
}
You can’t perform that action at this time.
0 commit comments