From e5dd30f77e10b3fa3395312045c06e5e15f9620e Mon Sep 17 00:00:00 2001 From: Eugene Leviant Date: Tue, 22 Oct 2019 12:57:23 +0000 Subject: [PATCH] [ThinLTO] Add code comment. NFC llvm-svn: 375500 --- llvm/lib/Transforms/IPO/FunctionImport.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 2ce8c92..3f5cc07 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -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()) -- 2.7.4