projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b7a81d
)
Stupid bug.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 16 Mar 2007 17:50:20 +0000
(17:50 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 16 Mar 2007 17:50:20 +0000
(17:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35126
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index e40171a6b0da41635303936e8b1cb9ee6d5a2c23..d810615f4c545800907f19a49f25c69de20d6a42 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
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.