projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
75a9d37
)
Fix FileCheck crash when empty prefix is passed.
author
Eli Bendersky
<eliben@google.com>
Tue, 29 Jul 2014 20:30:53 +0000
(20:30 +0000)
committer
Eli Bendersky
<eliben@google.com>
Tue, 29 Jul 2014 20:30:53 +0000
(20:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214210
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/FileCheck/FileCheck.cpp
patch
|
blob
|
history
diff --git
a/utils/FileCheck/FileCheck.cpp
b/utils/FileCheck/FileCheck.cpp
index 9e6a6a2c8ab4df2fad392458945a3383d76275d9..9245e1143ad4068141b983bc2fd74617b6bf5e1e 100644
(file)
--- a/
utils/FileCheck/FileCheck.cpp
+++ b/
utils/FileCheck/FileCheck.cpp
@@
-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;