From 7c1faf0f598ca98216ff221b231c57b4d5ec184b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 7 Oct 2002 18:34:32 +0000 Subject: [PATCH] Non-functionality change just to make it more clear what is going on git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4060 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/Internalize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/Internalize.cpp b/lib/Transforms/IPO/Internalize.cpp index 58b1dccdaef..dfd4d218641 100644 --- a/lib/Transforms/IPO/Internalize.cpp +++ b/lib/Transforms/IPO/Internalize.cpp @@ -42,7 +42,7 @@ namespace { // Mark all global variables with initializers as internal as well... for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I) - if (I->hasInitializer() && I->hasExternalLinkage()) { + if (!I->isExternal() && I->hasExternalLinkage()) { I->setInternalLinkage(true); Changed = true; ++NumGlobals; -- 2.34.1