From 57077413f1b36455ca301b00b64eb9f0cb650e60 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Apr 2009 05:38:23 +0000 Subject: [PATCH] eliminate unneeded parens. llvm-svn: 68939 --- 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); }