mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Stupid bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b7a81d3ae
commit
9f5ead9601
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user