From 11bea1bff334432c066df7bbf4a77659be269b5a Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 29 Sep 2014 23:31:13 +0000 Subject: [PATCH 1/1] Simplify conditional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218643 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsTargetMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1