aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetLowering.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 88682f4334..24b0540454 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -130,9 +130,7 @@ public:
/// specified value type. This means that it has a register that directly
/// holds it without promotions or expansions.
bool isTypeLegal(MVT::ValueType VT) const {
- return !MVT::isExtendedValueType(VT) ?
- RegClassForVT[VT] != 0 :
- false;
+ return !MVT::isExtendedValueType(VT) && RegClassForVT[VT] != 0;
}
class ValueTypeActionImpl {