[llvm] [TableGen] Use assert instead of PrintFatalError in TGLexer. NFC. (PR #122303)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 07:59:37 PST 2025


================
@@ -664,11 +663,10 @@ bool TGLexer::prepExitInclude(bool IncludeStackMustBeEmpty) {
   PrepIncludeStack.pop_back();
 
   if (IncludeStackMustBeEmpty) {
----------------
jayfoad wrote:

I think it will probably work out cleaner to move the assert into the caller, processEOF.

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


More information about the llvm-commits mailing list