1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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

llvm-svn: 214672
This commit is contained in:
Saleem Abdulrasool 2014-08-03 23:00:39 +00:00
parent 189689a302
commit 1a36f331c8

View File

@ -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);