From: Saleem Abdulrasool Date: Sun, 3 Aug 2014 23:00:39 +0000 (+0000) Subject: X86: silence warning (-Wparentheses) X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=f83017c0b707c3496c73c9ecdea45a6d425437bf X86: silence warning (-Wparentheses) GCC 4.8.2 points out the ambiguity in evaluation of the assertion condition: lib/Target/X86/X86FloatingPoint.cpp:949:49: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] assert(STReturns == 0 || isMask_32(STReturns) && N <= 2); git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214672 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp index e74613b9498..aac7ec78cda 100644 --- a/lib/Target/X86/X86FloatingPoint.cpp +++ b/lib/Target/X86/X86FloatingPoint.cpp @@ -946,7 +946,7 @@ void FPS::handleCall(MachineBasicBlock::iterator &I) { // FP registers used for function return must be consecutive starting at // FP0. - assert(STReturns == 0 || isMask_32(STReturns) && N <= 2); + assert((STReturns == 0 || isMask_32(STReturns)) && N <= 2); for (unsigned I = 0; I < N; ++I) pushReg(N - I - 1);