[llvm] r214732 - [X86] Place parentheses around "isMask_32(STReturns) && N <= 2".

Akira Hatanaka ahatanaka at apple.com
Mon Aug 4 10:23:38 PDT 2014


Author: ahatanak
Date: Mon Aug  4 12:23:38 2014
New Revision: 214732

URL: http://llvm.org/viewvc/llvm-project?rev=214732&view=rev
Log:
[X86] Place parentheses around "isMask_32(STReturns) && N <= 2".

This corrects r214672, which was committed to silence a gcc warning.

Modified:
    llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp

Modified: llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp?rev=214732&r1=214731&r2=214732&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FloatingPoint.cpp Mon Aug  4 12:23:38 2014
@@ -946,7 +946,7 @@ void FPS::handleCall(MachineBasicBlock::
 
   // 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);





More information about the llvm-commits mailing list