[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 08:01:07 PST 2025


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

In my opinion no, because an assertion should catch it in the next line `PrepIncludeStack.back()`.

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


More information about the llvm-commits mailing list