mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
add an assert to get a slightly better msg about this problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -128,6 +128,9 @@ bool ReduceCrashingFunctions::TestFuncs(std::vector<Function*> &Funcs) {
|
|||||||
// Convert list to set for fast lookup...
|
// Convert list to set for fast lookup...
|
||||||
std::set<Function*> Functions;
|
std::set<Function*> Functions;
|
||||||
for (unsigned i = 0, e = Funcs.size(); i != e; ++i) {
|
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(),
|
Function *CMF = M->getFunction(Funcs[i]->getName(),
|
||||||
Funcs[i]->getFunctionType());
|
Funcs[i]->getFunctionType());
|
||||||
assert(CMF && "Function not in module?!");
|
assert(CMF && "Function not in module?!");
|
||||||
|
Reference in New Issue
Block a user