commit | 9f5ead9601e110b2e67123d73647cbd88308c379 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Fri Mar 16 17:50:20 2007 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Fri Mar 16 17:50:20 2007 +0000 |
tree | dd7e34e689435db3b3c9ad5bd031c3e703b281b3 | |
parent | 1b7a81d3aefbbdd0681c78fa00261e3d39454360 [diff] [blame] |
Stupid bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35126 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e40171a..d810615 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -4009,7 +4009,7 @@ 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.