From 52b45056b2dc9246f732aa9cf655b6b2cb355c93 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 12 Oct 2010 19:44:17 +0000 Subject: [PATCH] Combine these together - should probably have some text associated 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 8ed52158a27..a40413571c3 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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 -- 2.34.1