forked from OSchip/llvm-project
[SLPVectorizer] Silence null dereference warning. NFCI.
cppcheck + MSVC analyzer both over zealously warn that we might dereference a null Bundle pointer - add an assertion to check for null to silence the warning, plus its a good idea to check that we succeeded in finding a schedule bundle anyway.... llvm-svn: 369094
This commit is contained in:
parent
1653ebee3f
commit
59894d4668
|
@ -4308,6 +4308,7 @@ bool BoUpSLP::BlockScheduling::tryScheduleBundle(ArrayRef<Value *> VL,
|
|||
resetSchedule();
|
||||
initialFillReadyList(ReadyInsts);
|
||||
}
|
||||
assert(Bundle && "Failed to find schedule bundle");
|
||||
|
||||
LLVM_DEBUG(dbgs() << "SLP: try schedule bundle " << *Bundle << " in block "
|
||||
<< BB->getName() << "\n");
|
||||
|
|
Loading…
Reference in New Issue