[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:52:08 PST 2025
================
@@ -664,11 +663,10 @@ bool TGLexer::prepExitInclude(bool IncludeStackMustBeEmpty) {
PrepIncludeStack.pop_back();
if (IncludeStackMustBeEmpty) {
----------------
s-barannikov wrote:
`IncludeStackMustBeEmpty` is only used in this if. Maybe just remove the parameter and the if/assert?
https://github.com/llvm/llvm-project/pull/122303
More information about the llvm-commits
mailing list