[llvm] 8b76aea - [TableGen][GlobalISel] Fix unused variable warning in Release build
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 01:37:54 PDT 2023
Author: Jay Foad
Date: 2023-07-11T09:37:41+01:00
New Revision: 8b76aea8d8b1b71f6220bc2845abc749f18a19b7
URL: https://github.com/llvm/llvm-project/commit/8b76aea8d8b1b71f6220bc2845abc749f18a19b7
DIFF: https://github.com/llvm/llvm-project/commit/8b76aea8d8b1b71f6220bc2845abc749f18a19b7.diff
LOG: [TableGen][GlobalISel] Fix unused variable warning in Release build
Added:
Modified:
llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp b/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
index b64e9493d1731e..53d76ff02da969 100644
--- a/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
+++ b/llvm/utils/TableGen/GlobalISelCombinerMatchTableEmitter.cpp
@@ -1356,6 +1356,7 @@ void GICombinerEmitter::emitTestSimplePredicate(raw_ostream &OS) {
// That way we can just get the RuleID from the enum by subtracting
// (GICXXPred_Invalid + 1).
unsigned ExpectedID = 0;
+ (void)ExpectedID;
for (const auto &[ID, _] : AllCombineRules) {
assert(ExpectedID++ == ID && "combine rules are not ordered!");
OS << " " << getIsEnabledPredicateEnumName(ID) << EnumeratorSeparator;
More information about the llvm-commits
mailing list