summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-13 19:53:40 +0000
committerChris Lattner <sabre@nondot.org>2005-04-13 19:53:40 +0000
commite3d17d8225a453a36927556f4e053b0e3c12f66f (patch)
tree80501d988ef1b542670e93bd1f3a630388d2cb3d /llvm
parent8c3d409dc7bd29209301f010d710bd56f7c70c79 (diff)
downloadbcm5719-llvm-e3d17d8225a453a36927556f4e053b0e3c12f66f.tar.gz
bcm5719-llvm-e3d17d8225a453a36927556f4e053b0e3c12f66f.zip
fix some serious miscompiles on ia64, alpha, and ppc
llvm-svn: 21288
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 4b3064593c7..64774c2fe41 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud