From 272dce013727398ff9a8726bc720bc6ecff81184 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 10 Oct 2007 09:54:50 +0000 Subject: [PATCH] Correct swapped arguments to getConstant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42824 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index b77b810bacb..ebda6d1210c 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); } -- 2.34.1