mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
add an assert to get a slightly better msg about this problem
llvm-svn: 26812
This commit is contained in:
parent
7e80a5a16b
commit
dbdfef7604
@ -128,6 +128,9 @@ bool ReduceCrashingFunctions::TestFuncs(std::vector<Function*> &Funcs) {
|
||||
// Convert list to set for fast lookup...
|
||||
std::set<Function*> Functions;
|
||||
for (unsigned i = 0, e = Funcs.size(); i != e; ++i) {
|
||||
// FIXME: bugpoint should add names to all stripped symbols.
|
||||
assert(!Funcs[i]->getName().empty() &&
|
||||
"Bugpoint doesn't work on stripped modules yet PR718!");
|
||||
Function *CMF = M->getFunction(Funcs[i]->getName(),
|
||||
Funcs[i]->getFunctionType());
|
||||
assert(CMF && "Function not in module?!");
|
||||
|
Loading…
Reference in New Issue
Block a user