Combine these together - should probably have some text associated
authorEric Christopher <echristo@apple.com>
Tue, 12 Oct 2010 19:44:17 +0000 (19:44 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 12 Oct 2010 19:44:17 +0000 (19:44 +0000)
that says what why what we just asserted is wrong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116333 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 8ed52158a27eb0ffec6a2cda7bdb48fc7262bc89..a40413571c3eeffb3d79ab4b60ae8a79e88245ba 100644 (file)
@@ -7602,10 +7602,10 @@ SDValue X86TargetLowering::LowerVAARG(SDValue Op, SelectionDAG &DAG) const {
 
   if (ArgMode == 2) {
     // Sanity Check: Make sure using fp_offset makes sense.
-    const Function *Fn = DAG.getMachineFunction().getFunction();
-    bool NoImplicitFloatOps = Fn->hasFnAttr(Attribute::NoImplicitFloat);
-    assert(!UseSoftFloat && !NoImplicitFloatOps && Subtarget->hasSSE1());
-    (void)NoImplicitFloatOps;
+    assert(!UseSoftFloat && 
+           !(DAG.getMachineFunction()
+                .getFunction()->hasFnAttr(Attribute::NoImplicitFloat)) &&
+           Subtarget->hasSSE1());
   }
 
   // Insert VAARG_64 node into the DAG