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 51d3829 commit 6f6100fCopy full SHA for 6f6100f
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
@@ -536,9 +536,8 @@ class MetadataLoader::MetadataLoaderImpl {
536
DenseSet<DILocalScope *> Visited;
537
while (S && !isa<DISubprogram>(S)) {
538
S = dyn_cast_or_null<DILocalScope>(S->getScope());
539
- if (Visited.contains(S))
+ if (!Visited.insert(S).second)
540
break;
541
- Visited.insert(S);
542
}
543
ParentSubprogram[InitialScope] = llvm::dyn_cast_or_null<DISubprogram>(S);
544
0 commit comments