[all-commits] [llvm/llvm-project] 5c6f74: [MCParser] Correctly handle CRLF line ends when co...
Stephen Tozer via All-commits
all-commits at lists.llvm.org
Tue Aug 17 07:53:53 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5c6f748cbc17d4ce82374f0c4c2364961152a1c4
https://github.com/llvm/llvm-project/commit/5c6f748cbc17d4ce82374f0c4c2364961152a1c4
Author: Tozer <stephen.tozer at sony.com>
Date: 2021-08-17 (Tue, 17 Aug 2021)
Changed paths:
M llvm/.gitattributes
M llvm/lib/MC/MCParser/AsmLexer.cpp
A llvm/test/tools/llvm-mca/directives-handle-crlf.s
Log Message:
-----------
[MCParser] Correctly handle CRLF line ends when consuming line comments
Fixes issue: https://bugs.llvm.org/show_bug.cgi?id=47983
The AsmLexer currently has an issue with lexing line comments in files
with CRLF line endings, in which it reads the carriage return as being
part of the line comment. This causes an error for certain valid comment
layouts; this patch fixes this by excluding the carriage return from the
line comment.
Differential Revision: https://reviews.llvm.org/D90234
More information about the All-commits
mailing list