From: Aaron Ballman Date: Sat, 27 Dec 2014 19:17:53 +0000 (+0000) Subject: Fixing another -Wunused-variable warning, this time in release builds without asserts... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=22376afd76214281a17a55662d007bdd799f954c;p=oota-llvm.git Fixing another -Wunused-variable warning, this time in release builds without asserts. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224889 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 2c62cbc9b06..77a1d6e69fe 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/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