[llvm] [TableGen] Use assert instead of PrintFatalError in TGLexer. NFC. (PR #122303)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 02:30:54 PST 2025
================
@@ -1053,10 +1040,6 @@ bool TGLexer::prepIsProcessingEnabled() {
}
void TGLexer::prepReportPreprocessorStackError() {
- if (PrepIncludeStack.back().empty())
----------------
jayfoad wrote:
In my opinion the message doesn't add much value. Otherwise we should put `assert(!empty() && "explanation")` before every usage of `.back()`.
https://github.com/llvm/llvm-project/pull/122303
More information about the llvm-commits
mailing list