aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-12-10 05:40:19 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-12-10 05:40:19 +0000
commitd82ef51187ccb9986295ac4ce075ffc97ea92f85 (patch)
tree603fa28c6416a2b9263219570dad9ac89d310d76
parent0cfbdf8fc3cf48f3a6efb184a73147fee25ef44e (diff)
Do not allow empty label names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18743 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AsmParser/Lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l
index da875be34b..e39d224f0c 100644
--- a/lib/AsmParser/Lexer.l
+++ b/lib/AsmParser/Lexer.l
@@ -139,7 +139,7 @@ VarID %[-a-zA-Z$._][-a-zA-Z$._0-9]*
/* Label identifiers end with a colon */
Label [-a-zA-Z$._0-9]+:
-QuoteLabel \"[^\"]*\":
+QuoteLabel \"[^\"]+\":
/* Quoted names can contain any character except " and \ */
StringConstant \"[^\"]*\"