diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-27 23:17:47 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-27 23:17:47 +0000 |
commit | a5fc03562f143c5e44e5190cd0f3f3949988810f (patch) | |
tree | ab072891413d209eb8abbb0b19b1ecd5eb983200 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | df5f681525afba7eca981b180d89194611377ee9 (diff) | |
download | bcm5719-llvm-a5fc03562f143c5e44e5190cd0f3f3949988810f.tar.gz bcm5719-llvm-a5fc03562f143c5e44e5190cd0f3f3949988810f.zip |
LBRX no longer has an explicit SrcValueSDNode operand, so the type
operand is now at index 2, rather than 3. This fixes the
"Invalid child # of SDNode!" failures on PowerPC.
llvm-svn: 82942
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 63d6665953f..3920b381509 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -5116,7 +5116,7 @@ void PPCTargetLowering::computeMaskedBitsForTargetNode(const SDValue Op, default: break; case PPCISD::LBRX: { // lhbrx is known to have the top bits cleared out. - if (cast<VTSDNode>(Op.getOperand(3))->getVT() == MVT::i16) + if (cast<VTSDNode>(Op.getOperand(2))->getVT() == MVT::i16) KnownZero = 0xFFFF0000; break; } |