Skip to content

Commit 8b39c89

Browse files
[Bitcode] Avoid repeated hash lookups (NFC) (#128824)
1 parent 3307b03 commit 8b39c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Bitcode/Reader/MetadataLoader.cpp

Lines changed: 2 additions & 2 deletions
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)