mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[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
4e5da422ab
commit
8062e3ba80
@ -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…
x
Reference in New Issue
Block a user