[llvm] [llvm][Tablegen][llvm-tblgen] Added keyword #undef to llvm-tblgen and fixed a small b… (PR #69135)

Qiu Chaofan via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 01:49:08 PDT 2023


================
@@ -664,7 +660,7 @@ tgtok::TokKind TGLexer::prepIsDirective() const {
           // It looks like TableGen does not support '\r' as the actual
           // carriage return, e.g. getNextChar() treats a single '\r'
           // as '\n'.  So we do the same here.
-          NextChar == '\r')
+          NextChar == '\r' || NextChar == '\0')
----------------
ecnelises wrote:

Seems unrelated to a new keyword?

https://github.com/llvm/llvm-project/pull/69135


More information about the llvm-commits mailing list