TableGen's lexer was unable to handle nested #ifndef when the outer #ifdef / #ifndef scope is subject to skip. This was caused by returning the canonicalized token when it should have returned the original one.
Fix #65100 .
Paths
| Differential D159236
[TableGen] Fix incorrect handling of nested `#ifndef` directives ClosedPublic Authored by myhsu on Aug 30 2023, 4:17 PM.
Details Summary TableGen's lexer was unable to handle nested #ifndef when the outer #ifdef / #ifndef scope is subject to skip. This was caused by returning the canonicalized token when it should have returned the original one. Fix #65100 .
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 6 2023, 4:13 PM This revision was landed with ongoing or failed builds.Sep 7 2023, 12:58 PM Closed by commit rGa09f09c618e9: [TableGen] Fix incorrect handling of nested `#ifndef` directives (authored by myhsu). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 556198 llvm/lib/TableGen/TGLexer.cpp
llvm/test/TableGen/nested_ifdef.inc
|