From: Chris Lattner Date: Wed, 13 Apr 2005 19:53:40 +0000 (+0000) Subject: fix some serious miscompiles on ia64, alpha, and ppc X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fd8d389edef29f6442cb4e32ee4b7ffe1d0c71d7;p=oota-llvm.git fix some serious miscompiles on ia64, alpha, and ppc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21288 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 4b3064593c7..64774c2fe41 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -798,7 +798,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, if (N1.getOpcode() == ISD::SETCC && TLI.getSetCCResultContents() == TargetLowering::ZeroOrOneSetCCResult) if (C2 & 1) - return getNode(ISD::AND, VT, N1.getOperand(1), getConstant(1, VT)); + return getNode(ISD::AND, VT, N1, getConstant(1, VT)); else return getConstant(0, VT);