diff --git a/llvm/lib/AsmParser/Lexer.l b/llvm/lib/AsmParser/Lexer.l index 19be3dc3b496..08a3a255d607 100644 --- a/llvm/lib/AsmParser/Lexer.l +++ b/llvm/lib/AsmParser/Lexer.l @@ -177,8 +177,8 @@ HexFPConstant 0x[0-9A-Fa-f]+ */ HexIntConstant [us]0x[0-9A-Fa-f]+ -/* WSNL - shorthand for newline followed by whitespace */ -WSNL [ \r\t\n]*$ +/* WSNL - shorthand for whitespace followed by newline */ +WSNL [ \r\t]*$ %% {Comment} { /* Ignore comments for now */ }