[llvm] r218643 - Simplify conditional.
Eric Christopher
echristo at gmail.com
Mon Sep 29 16:31:13 PDT 2014
Author: echristo
Date: Mon Sep 29 18:31:13 2014
New Revision: 218643
URL: http://llvm.org/viewvc/llvm-project?rev=218643&view=rev
Log:
Simplify conditional.
Modified:
llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=218643&r1=218642&r2=218643&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Mon Sep 29 18:31:13 2014
@@ -113,7 +113,7 @@ MipsTargetMachine::getSubtargetImpl(cons
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)
More information about the llvm-commits
mailing list