summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-20 19:32:11 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-20 19:32:11 +0000
commit550cf0369cf01c54faea549fec383b31af510c03 (patch)
treeb328e16f59f525f9446ffd7c38339ea8b75058ca /llvm/lib
parenta88c4a74f33c2b1018d0ab1b78018929857d4615 (diff)
downloadbcm5719-llvm-550cf0369cf01c54faea549fec383b31af510c03.tar.gz
bcm5719-llvm-550cf0369cf01c54faea549fec383b31af510c03.zip
Minor bug.
llvm-svn: 35219
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 5623776158c..70506e32fcd 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -4009,7 +4009,8 @@ static bool SinkInvariantGEPIndex(BinaryOperator *BinOp, LoopInfo *loopInfo,
// Check if it is possible to fold the expression to address mode.
if (UseTy &&
- TLI.isLegalAddressExpression(Instruction::Add, BinOp->getOperand(0),
+ TLI.isLegalAddressExpression(BinOp->getOpcode(),
+ BinOp->getOperand(0),
BinOp->getOperand(1), UseTy)) {
DestBBs.insert(UserBB);
MadeChange = true;
OpenPOWER on IntegriCloud