From: Eric Christopher Date: Mon, 29 Sep 2014 23:31:13 +0000 (+0000) Subject: Simplify conditional. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=11bea1bff334432c066df7bbf4a77659be269b5a Simplify conditional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218643 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index 31c84bf5176..d453935d3e1 100644 --- a/lib/Target/Mips/MipsTargetMachine.cpp +++ b/lib/Target/Mips/MipsTargetMachine.cpp @@ -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)