forked from OSchip/llvm-project
parent
5b99c189b3
commit
e5dd30f77e
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue