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 98542a3 commit a1301cbCopy full SHA for a1301cb
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
@@ -539,9 +539,10 @@ class MetadataLoader::MetadataLoaderImpl {
539
if (!Visited.insert(S).second)
540
break;
541
}
542
- ParentSubprogram[InitialScope] = llvm::dyn_cast_or_null<DISubprogram>(S);
543
544
- return ParentSubprogram[InitialScope];
+ auto &PS = ParentSubprogram[InitialScope];
+ PS = llvm::dyn_cast_or_null<DISubprogram>(S);
545
+ return PS;
546
547
548
/// Move local imports from DICompileUnit's 'imports' field to
0 commit comments