mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 20:04:03 +00:00
Stupid bug.
llvm-svn: 35126
This commit is contained in:
parent
8ced23ee5a
commit
449900b988
@ -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