mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Only test the vector of functions if it is non-empty.
llvm-svn: 7594
This commit is contained in:
parent
7452a521b3
commit
65bebf03f0
@ -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…
x
Reference in New Issue
Block a user