]> granicus.if.org Git - llvm/commitdiff
[ThinLTO] Add code comment. NFC
authorEugene Leviant <eleviant@accesssoftek.com>
Tue, 22 Oct 2019 12:57:23 +0000 (12:57 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Tue, 22 Oct 2019 12:57:23 +0000 (12:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375500 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionImport.cpp

index 2ce8c92ec8abab669bab4a234b2715b77514082b..3f5cc078d75fc5b513640f7a13ab52d22ff2af0d 100644 (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())