Fix FileCheck crash when empty prefix is passed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Bendersky 2014-07-29 20:30:53 +00:00
parent 75a9d37187
commit 570be9365f

View File

@ -1212,6 +1212,10 @@ static bool ValidateCheckPrefixes() {
I != E; ++I) {
StringRef Prefix(*I);
// Reject empty prefixes.
if (Prefix == "")
return false;
if (!PrefixSet.insert(Prefix))
return false;