Skip to content

Commit a461b7a

Browse files
committed
[ThinLTO] Add code comment. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375500 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 31ec98d commit a461b7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Transforms/IPO/FunctionImport.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,9 @@ void llvm::thinLTOResolvePrevailingInModule(
952952
if (NewLinkage == GV.getLinkage())
953953
return;
954954
if (GlobalValue::isLocalLinkage(GV.getLinkage()) ||
955+
// Don't internalize anything here, because the code below
956+
// lacks necessary correctness checks. Leave this job to
957+
// LLVM 'internalize' pass.
955958
GlobalValue::isLocalLinkage(NewLinkage) ||
956959
// In case it was dead and already converted to declaration.
957960
GV.isDeclaration())

0 commit comments

Comments
 (0)