diff options
author | Duncan Sands <baldrick@free.fr> | 2007-10-10 09:54:50 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-10-10 09:54:50 +0000 |
commit | bed2147264e6fc3a09146e4d3dcf070c9cd27f08 (patch) | |
tree | 29f2a78f307f4989ce28d710fa672fae7adf56f2 | |
parent | 49caa5bdd880ae22554536a4a0832b06806c0209 (diff) | |
download | external_llvm-bed2147264e6fc3a09146e4d3dcf070c9cd27f08.zip external_llvm-bed2147264e6fc3a09146e4d3dcf070c9cd27f08.tar.gz external_llvm-bed2147264e6fc3a09146e4d3dcf070c9cd27f08.tar.bz2 |
Correct swapped arguments to getConstant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42824 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index b77b810..ebda6d1 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2068,7 +2068,7 @@ SDOperand DAGCombiner::visitXOR(SDNode *N) { N0.Val->hasOneUse() && isSetCCEquivalent(N0.getOperand(0), LHS, RHS, CC)){ SDOperand V = N0.getOperand(0); V = DAG.getNode(ISD::XOR, V.getValueType(), V, - DAG.getConstant(V.getValueType(), 1)); + DAG.getConstant(1, V.getValueType())); AddToWorkList(V.Val); return DAG.getNode(ISD::ZERO_EXTEND, VT, V); } |