mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 10:16:07 +00:00

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. Differential Revision: https://reviews.llvm.org/D159236
9 lines
90 B
C++
9 lines
90 B
C++
#ifndef NESTED_IFDEF2
|
|
#define NESTED_IFDEF2
|
|
|
|
include "nested_ifdef.inc"
|
|
|
|
def bar;
|
|
|
|
#endif
|