aboutsummaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-11-19 23:01:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-11-19 23:01:16 +0000
commitff96b63d6fb0b6e6eccdabcbdc4eeeb69e54c648 (patch)
tree629cc269173083d5e2c53c5917689f6f9082d67b /lib/Target
parent68c26396c07b4ad96657d4510f06f7646785278d (diff)
Fix a cut-n-paste-error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/ARM/ARMISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 70821e1022..4648a69a1b 100644
--- a/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -1779,7 +1779,7 @@ SDNode *ARMDAGToDAGISel::
SelectT2CMOVImmOp(SDNode *N, SDValue FalseVal, SDValue TrueVal,
ARMCC::CondCodes CCVal, SDValue CCR, SDValue InFlag) {
ConstantSDNode *T = dyn_cast<ConstantSDNode>(TrueVal);
- if (!T || !TrueVal.getNode()->hasOneUse())
+ if (!T)
return 0;
unsigned Opc = 0;