Do not allow empty label names.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Fri, 10 Dec 2004 05:40:19 +0000 (05:40 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Fri, 10 Dec 2004 05:40:19 +0000 (05:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18743 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/Lexer.l

index da875be34bd7b859df585670a86016e5c1aa2cd2..e39d224f0ceb806ef491bc68d8f8fc01ce5a36ed 100644 (file)
@@ -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 \"[^\"]*\"