forked from OSchip/llvm-project
[LoopUnrollRuntime] Fixed null check after dereferencing warning. NFCI.
This commit is contained in:
parent
60cb193a40
commit
914128ab12
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue