mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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:
parent
75a9d37187
commit
570be9365f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user