mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Add assertion check.
llvm-svn: 56016
This commit is contained in:
parent
36ad68421e
commit
b08f098957
@ -1581,7 +1581,7 @@ void ModulePass::assignPassManager(PMStack &PMS,
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
assert(!PMS.empty() && "Unable to find appropriate Pass Manager");
|
||||
PMS.top()->add(this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user