[ThinLTO] Add code comment. NFC

llvm-svn: 375500
This commit is contained in:
Eugene Leviant 2019-10-22 12:57:23 +00:00
parent 5b99c189b3
commit e5dd30f77e
1 changed files with 3 additions and 0 deletions

View File

@ -952,6 +952,9 @@ void llvm::thinLTOResolvePrevailingInModule(
if (NewLinkage == GV.getLinkage())
return;
if (GlobalValue::isLocalLinkage(GV.getLinkage()) ||
// Don't internalize anything here, because the code below
// lacks necessary correctness checks. Leave this job to
// LLVM 'internalize' pass.
GlobalValue::isLocalLinkage(NewLinkage) ||
// In case it was dead and already converted to declaration.
GV.isDeclaration())