diff options
author | Tozer <stephen.tozer@sony.com> | 2021-08-17 15:38:45 +0100 |
---|---|---|
committer | Tozer <stephen.tozer@sony.com> | 2021-08-17 15:52:51 +0100 |
commit | 5c6f748cbc17d4ce82374f0c4c2364961152a1c4 (patch) | |
tree | 2774ea86701efe675a000bda07a5cc17eb1a00bf /llvm/.gitattributes | |
parent | c67f497e7aeab28df5fd335b3c8cc89e6d52b762 (diff) | |
download | llvm-5c6f748cbc17d4ce82374f0c4c2364961152a1c4.tar.gz |
[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
Diffstat (limited to 'llvm/.gitattributes')
-rw-r--r-- | llvm/.gitattributes | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/.gitattributes b/llvm/.gitattributes index 48ddf2f02d15..b41ae6aec97b 100644 --- a/llvm/.gitattributes +++ b/llvm/.gitattributes @@ -13,7 +13,8 @@ test/tools/llvm-strings/Inputs/numbers binary test/MC/AsmParser/incbin_abcd binary test/YAMLParser/spec-09-02.test binary -# This file must have CRLF line endings, therefore git should treat it as +# These files must have CRLF line endings, therefore git should treat them as # binary and not autoconvert line endings (for example, when core.autocrlf is # on). test/MC/AsmParser/preserve-comments-crlf.s binary +test/tools/llvm-mca/directives-handle-crlf.s binary |