forked from OSchip/llvm-project
[LoopUnrollRuntime] Fixed null check after dereferencing warning. NFCI.
This commit is contained in:
parent
60cb193a40
commit
914128ab12
|
@ -395,9 +395,9 @@ CloneLoopBlocks(Loop *L, Value *NewIter, const bool CreateRemainderLoop,
|
|||
}
|
||||
}
|
||||
if (CreateRemainderLoop) {
|
||||
Loop *NewLoop = NewLoops[L];
|
||||
MDNode *LoopID = NewLoop->getLoopID();
|
||||
Loop *NewLoop = NewLoops[L];
|
||||
assert(NewLoop && "L should have been cloned");
|
||||
MDNode *LoopID = NewLoop->getLoopID();
|
||||
|
||||
// Only add loop metadata if the loop is not going to be completely
|
||||
// unrolled.
|
||||
|
|
Loading…
Reference in New Issue