summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-16 17:50:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-16 17:50:20 +0000
commit0a9d0cabaf0364788555bd69b0e2c6c06f7794e7 (patch)
tree3a60871783b5018e7e6f0ea49ba0026cd5757321 /llvm/lib
parent144b8bbf171db11f8caa33fac2997d3c2bfb6922 (diff)
downloadbcm5719-llvm-0a9d0cabaf0364788555bd69b0e2c6c06f7794e7.tar.gz
bcm5719-llvm-0a9d0cabaf0364788555bd69b0e2c6c06f7794e7.zip
Stupid bug.
llvm-svn: 35126
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index e40171a6b0d..d810615f4c5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -4009,7 +4009,7 @@ static bool SinkInvariantGEPIndex(BinaryOperator *BinOp, LoopInfo *loopInfo,
Loop *L = loopInfo->getLoopFor(UserBB);
// Only sink if expression is a loop invariant in the use BB.
- if (isLoopInvariantInst(BinOp, L) && !User->use_empty()) {
+ if (L && isLoopInvariantInst(BinOp, L) && !User->use_empty()) {
const Type *UseTy = NULL;
// FIXME: We are assuming all the uses of the GEP will have the
// same type.
OpenPOWER on IntegriCloud