summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/CrashDebugger.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-08-05 15:26:21 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-08-05 15:26:21 +0000
commit689398fe76c7881c5a28ae9eab8ad1ebba7fc1ea (patch)
tree4c8b2e5fb2be96fc34501d5a12b4ef8f15dfa8d9 /llvm/tools/bugpoint/CrashDebugger.cpp
parent790a6f5e6c268e845c7fd541a59c9c40eb897ef3 (diff)
downloadbcm5719-llvm-689398fe76c7881c5a28ae9eab8ad1ebba7fc1ea.tar.gz
bcm5719-llvm-689398fe76c7881c5a28ae9eab8ad1ebba7fc1ea.zip
Only test the vector of functions if it is non-empty.
llvm-svn: 7594
Diffstat (limited to 'llvm/tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--llvm/tools/bugpoint/CrashDebugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp
index 852359a8c24..872725593e2 100644
--- a/llvm/tools/bugpoint/CrashDebugger.cpp
+++ b/llvm/tools/bugpoint/CrashDebugger.cpp
@@ -80,7 +80,7 @@ public:
virtual TestResult doTest(std::vector<Function*> &Prefix,
std::vector<Function*> &Kept) {
- if (TestFuncs(Kept))
+ if (!Kept.empty() && TestFuncs(Kept))
return KeepSuffix;
if (!Prefix.empty() && TestFuncs(Prefix))
return KeepPrefix;
OpenPOWER on IntegriCloud