[LoopUnrollRuntime] Fixed null check after dereferencing warning. NFCI.

This commit is contained in:
Dávid Bolvanský 2019-11-03 20:03:54 +01:00
parent 60cb193a40
commit 914128ab12
1 changed files with 2 additions and 2 deletions

View File

@ -396,8 +396,8 @@ CloneLoopBlocks(Loop *L, Value *NewIter, const bool CreateRemainderLoop,
}
if (CreateRemainderLoop) {
Loop *NewLoop = NewLoops[L];
MDNode *LoopID = NewLoop->getLoopID();
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.