1
0
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:
Devang Patel 2008-09-09 21:38:40 +00:00
parent 36ad68421e
commit b08f098957

View File

@ -1581,7 +1581,7 @@ void ModulePass::assignPassManager(PMStack &PMS,
else
break;
}
assert(!PMS.empty() && "Unable to find appropriate Pass Manager");
PMS.top()->add(this);
}