From 2c71b8f64f571b34e8df2a83120a2e889627b8d4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Apr 2009 05:38:23 +0000 Subject: [PATCH] eliminate unneeded parens. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68939 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/GlobalDCE.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/IPO/GlobalDCE.cpp b/lib/Transforms/IPO/GlobalDCE.cpp index c28d5e3e57a..4f97ae175b1 100644 --- a/lib/Transforms/IPO/GlobalDCE.cpp +++ b/lib/Transforms/IPO/GlobalDCE.cpp @@ -63,7 +63,7 @@ bool GlobalDCE::runOnModule(Module &M) { for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) { Changed |= RemoveUnusedGlobalValue(*I); // Functions with external linkage are needed if they have a body - if ((!I->hasLocalLinkage() && !I->hasLinkOnceLinkage()) && + if (!I->hasLocalLinkage() && !I->hasLinkOnceLinkage() && !I->isDeclaration()) GlobalIsNeeded(I); } @@ -73,7 +73,7 @@ bool GlobalDCE::runOnModule(Module &M) { Changed |= RemoveUnusedGlobalValue(*I); // Externally visible & appending globals are needed, if they have an // initializer. - if ((!I->hasLocalLinkage() && !I->hasLinkOnceLinkage()) && + if (!I->hasLocalLinkage() && !I->hasLinkOnceLinkage() && !I->isDeclaration()) GlobalIsNeeded(I); }