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 | 56ab90d3adcafbe6b5f954cea38b82abdf3d924f (patch) | |
tree | 7def983ee683767bba578f567658e2c5aca5ae31 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | f7c7ed274048cbc16d51f1cc43f4cdc88aab65e3 (diff) | |
download | bcm5719-llvm-56ab90d3adcafbe6b5f954cea38b82abdf3d924f.tar.gz bcm5719-llvm-56ab90d3adcafbe6b5f954cea38b82abdf3d924f.zip |
Correct swapped arguments to getConstant.
llvm-svn: 42824
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index b77b810bacb..ebda6d1210c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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); } |