From d82ef51187ccb9986295ac4ce075ffc97ea92f85 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Fri, 10 Dec 2004 05:40:19 +0000 Subject: [PATCH] Do not allow empty label names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18743 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/Lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index da875be34bd..e39d224f0ce 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 \"[^\"]*\"