mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Add assertion check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b3f08bac7
commit
bd6dc7a086
@ -1581,7 +1581,7 @@ void ModulePass::assignPassManager(PMStack &PMS,
|
|||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
assert(!PMS.empty() && "Unable to find appropriate Pass Manager");
|
||||||
PMS.top()->add(this);
|
PMS.top()->add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user