diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-03-16 23:16:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-03-16 23:16:17 +0000 |
| commit | 56ee4ea22f4d1ebd0ce36190fbef4c90aa818e24 (patch) | |
| tree | c7bf18057a24173bd4e7c8c136abc8ac2ccb237b | |
| parent | 7ececaad83163be9c877a91a9cb201b07ae5a9b3 (diff) | |
| download | bcm5719-llvm-56ee4ea22f4d1ebd0ce36190fbef4c90aa818e24.tar.gz bcm5719-llvm-56ee4ea22f4d1ebd0ce36190fbef4c90aa818e24.zip | |
add an assert to get a slightly better msg about this problem
llvm-svn: 26812
| -rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index 85e2a89504d..53b15800aed 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/tools/bugpoint/CrashDebugger.cpp @@ -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?!"); |

