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
This commit is contained in:
Aaron Ballman 2014-12-27 19:17:53 +00:00
parent 88e25192c2
commit 22376afd76

View 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