fix some serious miscompiles on ia64, alpha, and ppc
authorChris Lattner <sabre@nondot.org>
Wed, 13 Apr 2005 19:53:40 +0000 (19:53 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 Apr 2005 19:53:40 +0000 (19:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21288 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 4b3064593c78edd1175eafab3a3ca933f71bbbaa..64774c2fe41e8820707a749dc4aaba61c3b83442 100644 (file)
@@ -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);