eliminate unneeded parens.
authorChris Lattner <sabre@nondot.org>
Mon, 13 Apr 2009 05:38:23 +0000 (05:38 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Apr 2009 05:38:23 +0000 (05:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68939 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/GlobalDCE.cpp

index c28d5e3e57a06fe0eac2dcd7f76e035e43022fa1..4f97ae175b13a342e261f8c123c4ace7d64f0a20 100644 (file)
@@ -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);
   }