eliminate unneeded parens.

llvm-svn: 68939
This commit is contained in:
Chris Lattner 2009-04-13 05:38:23 +00:00
parent 11dc7c1a34
commit 836e77d161
1 changed files with 2 additions and 2 deletions

View 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);
}