From 4eb5c2e089218940cb8b9a8b0d26fed7ba39b89e Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sat, 27 Dec 2014 19:17:53 +0000 Subject: [PATCH] Fixing another -Wunused-variable warning, this time in release builds without asserts. NFC. llvm-svn: 224889 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 2c62cbc..77a1d6e 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -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 -- 2.7.4