Skip to content

Commit af3c826

Browse files
kazutakahiratajoaosaffran
authored and
joaosaffran
committed
[Bitcode] Avoid repeated hash lookups (NFC) (llvm#128824)
1 parent 32e2d62 commit af3c826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Bitcode/Reader/MetadataLoader.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,9 @@ class MetadataLoader::MetadataLoaderImpl {
539539
if (!Visited.insert(S).second)
540540
break;
541541
}
542-
ParentSubprogram[InitialScope] = llvm::dyn_cast_or_null<DISubprogram>(S);
543542

544-
return ParentSubprogram[InitialScope];
543+
return ParentSubprogram[InitialScope] =
544+
llvm::dyn_cast_or_null<DISubprogram>(S);
545545
}
546546

547547
/// Move local imports from DICompileUnit's 'imports' field to

0 commit comments

Comments
 (0)