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

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 07:59:14 PST 2025


================
@@ -1053,10 +1040,6 @@ bool TGLexer::prepIsProcessingEnabled() {
 }
 
 void TGLexer::prepReportPreprocessorStackError() {
-  if (PrepIncludeStack.back().empty())
----------------
s-barannikov wrote:

Worth changing to assertion?

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


More information about the llvm-commits mailing list