From: Davide Italiano Date: Sat, 14 Jan 2017 20:44:08 +0000 (+0000) Subject: [NewGVN] Fix a warning from GCC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fc369afea304eb2dfd6585871e304ce13c74242;p=llvm [NewGVN] Fix a warning from GCC. Patch by Gonsolo. Differential Revision: https://reviews.llvm.org/D28731 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292031 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/NewGVN.cpp b/lib/Transforms/Scalar/NewGVN.cpp index 50ccffc6cca..9f7d4b0265a 100644 --- a/lib/Transforms/Scalar/NewGVN.cpp +++ b/lib/Transforms/Scalar/NewGVN.cpp @@ -1076,13 +1076,12 @@ void NewGVN::moveValueToNewCongruenceClass(Instruction *I, // dominator tree, or the new class leader should dominate the new member // instruction. We simply check that the member instruction does not properly // dominate the new class leader. - assert( - !isa(NewClass->RepLeader) || !NewClass->RepLeader || - I == NewClass->RepLeader || - !DT->properlyDominates( - I->getParent(), - cast(NewClass->RepLeader)->getParent()) && - "New class for instruction should not be dominated by instruction"); + assert((!isa(NewClass->RepLeader) || !NewClass->RepLeader || + I == NewClass->RepLeader || + !DT->properlyDominates( + I->getParent(), + cast(NewClass->RepLeader)->getParent())) && + "New class for instruction should not be dominated by instruction"); if (NewClass->RepLeader != I) { auto DFSNum = InstrDFS.lookup(I);