Simplify conditional.
authorEric Christopher <echristo@gmail.com>
Mon, 29 Sep 2014 23:31:13 +0000 (23:31 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 29 Sep 2014 23:31:13 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218643 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsTargetMachine.cpp

index 31c84bf5176462b7dbbfc57d03998cfe77dfe810..d453935d3e1c1f438dee042fb07933be34ae5232 100644 (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)
   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)
                        : Options.UseSoftFloat;
 
   if (hasMips16Attr)