Only test the vector of functions if it is non-empty.

llvm-svn: 7594
This commit is contained in:
Misha Brukman 2003-08-05 15:26:21 +00:00
parent 790a6f5e6c
commit 689398fe76
1 changed files with 1 additions and 1 deletions

View File

@ -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;