]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224889 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 2c62cbc9b06aa4232806123c862231cc58cc8b50..77a1d6e69febe440ec063328ebaba000dd8f67e9 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