aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-16 23:16:17 +0000
committerChris Lattner <sabre@nondot.org>2006-03-16 23:16:17 +0000
commitcc540ebabcc8893d08f204f83f30a5168516fcd6 (patch)
treefa97969cdfb56a3a7126dfc154503e8ef94057a6 /tools/bugpoint
parent6cb7004c3499f07c034a01f6335b5058aa80a5ce (diff)
downloadexternal_llvm-cc540ebabcc8893d08f204f83f30a5168516fcd6.zip
external_llvm-cc540ebabcc8893d08f204f83f30a5168516fcd6.tar.gz
external_llvm-cc540ebabcc8893d08f204f83f30a5168516fcd6.tar.bz2
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
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp
index 85e2a89..53b1580 100644
--- a/tools/bugpoint/CrashDebugger.cpp
+++ b/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?!");