[llvm] e559d0a - [TableGen] Fix -Wunused-variable in non-assertion builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 16 10:51:17 PST 2026
Author: Fangrui Song
Date: 2026-02-16T10:51:10-08:00
New Revision: e559d0a97a3dcce5df1e0d64c60a8808096c4b7d
URL: https://github.com/llvm/llvm-project/commit/e559d0a97a3dcce5df1e0d64c60a8808096c4b7d
DIFF: https://github.com/llvm/llvm-project/commit/e559d0a97a3dcce5df1e0d64c60a8808096c4b7d.diff
LOG: [TableGen] Fix -Wunused-variable in non-assertion builds
Added:
Modified:
llvm/utils/TableGen/DAGISelMatcherOpt.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
index 7e44d700a1a51..2a7b834dea138 100644
--- a/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
@@ -489,6 +489,7 @@ static void FactorNodes(MatcherList &ML) {
EqualIt->pop_front();
assert(FirstEmpty == EqualIt->empty() &&
"Expect all to be empty if any are empty");
+ (void)FirstEmpty;
Matcher *Tmp = EqualIt->empty() ? nullptr : EqualIt->front();
// If the remainder is a ScopeMatcher, merge its contents so we can add
More information about the llvm-commits
mailing list