mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +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:
@ -1212,6 +1212,10 @@ static bool ValidateCheckPrefixes() {
|
|||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
StringRef Prefix(*I);
|
StringRef Prefix(*I);
|
||||||
|
|
||||||
|
// Reject empty prefixes.
|
||||||
|
if (Prefix == "")
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!PrefixSet.insert(Prefix))
|
if (!PrefixSet.insert(Prefix))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user