Fixing another -Wunused-variable warning, this time in release builds without asserts...
authorAaron Ballman <aaron@aaronballman.com>
Sat, 27 Dec 2014 19:17:53 +0000 (19:17 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sat, 27 Dec 2014 19:17:53 +0000 (19:17 +0000)
llvm-svn: 224889

llvm/lib/Target/X86/X86ISelLowering.cpp

index 2c62cbc..77a1d6e 100644 (file)
@@ -2550,9 +2550,9 @@ X86TargetLowering::LowerFormalArguments(SDValue Chain,
   }
 
   // Figure out if XMM registers are in use.
-  bool NoImplicitFloatOps = Fn->getAttributes().hasAttribute(
-      AttributeSet::FunctionIndex, Attribute::NoImplicitFloat);
-  assert(!(MF.getTarget().Options.UseSoftFloat && NoImplicitFloatOps) &&
+  assert(!(MF.getTarget().Options.UseSoftFloat &&
+           Fn->getAttributes().hasAttribute(AttributeSet::FunctionIndex,
+                                            Attribute::NoImplicitFloat)) &&
          "SSE register cannot be used when SSE is disabled!");
 
   // 64-bit calling conventions support varargs and register parameters, so we