summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-08-03 23:00:39 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-08-03 23:00:39 +0000
commit557023e349f16ee8da3249e92e53a96dc8633164 (patch)
tree7b507469ad257bc6dc8df778be1494a06cf7d84b /llvm/lib
parentbefa21532c52ff65a87bd75b2c245e983dd1e205 (diff)
downloadbcm5719-llvm-557023e349f16ee8da3249e92e53a96dc8633164.tar.gz
bcm5719-llvm-557023e349f16ee8da3249e92e53a96dc8633164.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86FloatingPoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index e74613b9498..aac7ec78cda 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud