Simplify conditional.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2014-09-29 23:31:13 +00:00
parent e3d2fcce41
commit 11bea1bff3

View File

@ -113,7 +113,7 @@ MipsTargetMachine::getSubtargetImpl(const Function &F) const {
Attribute SFAttr =
FnAttrs.getAttribute(AttributeSet::FunctionIndex, "use-soft-float");
bool softFloat = !SFAttr.hasAttribute(Attribute::None)
? (SFAttr.getValueAsString() == "true" ? true : false)
? SFAttr.getValueAsString() == "true"
: Options.UseSoftFloat;
if (hasMips16Attr)