aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-28 18:03:09 +0000
committerDan Gohman <gohman@apple.com>2009-01-28 18:03:09 +0000
commitf52038a2040bd2d0ad9abc3848353074b12a4518 (patch)
tree05644fd85e968368b4983560690126a577592da8
parent8c46e8573e2c8b3e1f048c68c61e2fc452703234 (diff)
downloadexternal_llvm-f52038a2040bd2d0ad9abc3848353074b12a4518.zip
external_llvm-f52038a2040bd2d0ad9abc3848353074b12a4518.tar.gz
external_llvm-f52038a2040bd2d0ad9abc3848353074b12a4518.tar.bz2
Delete unnecessary elses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63214 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/DAGISelHeader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/DAGISelHeader.h b/include/llvm/CodeGen/DAGISelHeader.h
index 28b2277..6c040f4 100644
--- a/include/llvm/CodeGen/DAGISelHeader.h
+++ b/include/llvm/CodeGen/DAGISelHeader.h
@@ -31,9 +31,9 @@ SelectionDAG::allnodes_iterator ISelPosition;
static bool IsChainCompatible(SDNode *Chain, SDNode *Op) {
if (Chain->getOpcode() == ISD::EntryToken)
return true;
- else if (Chain->getOpcode() == ISD::TokenFactor)
+ if (Chain->getOpcode() == ISD::TokenFactor)
return false;
- else if (Chain->getNumOperands() > 0) {
+ if (Chain->getNumOperands() > 0) {
SDValue C0 = Chain->getOperand(0);
if (C0.getValueType() == MVT::Other)
return C0.getNode() != Op && IsChainCompatible(C0.getNode(), Op);