Add assertion check.

llvm-svn: 56016
This commit is contained in:
Devang Patel 2008-09-09 21:38:40 +00:00
parent f4b92e6924
commit 18ff6367f7
1 changed files with 1 additions and 1 deletions

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);
}