diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-12-10 05:40:19 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-12-10 05:40:19 +0000 |
commit | d82ef51187ccb9986295ac4ce075ffc97ea92f85 (patch) | |
tree | 603fa28c6416a2b9263219570dad9ac89d310d76 | |
parent | 0cfbdf8fc3cf48f3a6efb184a73147fee25ef44e (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.l | 2 |
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 \"[^\"]*\" |