forked from OSchip/llvm-project
Only test the vector of functions if it is non-empty.
llvm-svn: 7594
This commit is contained in:
parent
790a6f5e6c
commit
689398fe76
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue