mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 01:03:52 +00:00
Add a check to make sure schedulePass() has not deleted stale RequiredPass.
llvm-svn: 139642
This commit is contained in:
parent
f13b5ef0e1
commit
466c23b78a
@ -1634,9 +1634,11 @@ void MPPassManager::addLowerLevelRequiredPass(Pass *P, Pass *RequiredPass) {
|
||||
FPP->add(RequiredPass);
|
||||
|
||||
// Register P as the last user of RequiredPass.
|
||||
SmallVector<Pass *, 1> LU;
|
||||
LU.push_back(RequiredPass);
|
||||
FPP->setLastUser(LU, P);
|
||||
if (RequiredPass) {
|
||||
SmallVector<Pass *, 1> LU;
|
||||
LU.push_back(RequiredPass);
|
||||
FPP->setLastUser(LU, P);
|
||||
}
|
||||
}
|
||||
|
||||
/// Return function pass corresponding to PassInfo PI, that is
|
||||
|
Loading…
x
Reference in New Issue
Block a user