Skip to content

Commit 195fe59

Browse files
committed
[TableGen] Fix a warning in GlobalISelCombinerEmitter.cpp (NFC)
/llvm-project/llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp:2612:14: error: variable 'ExpectedID' set but not used [-Werror,-Wunused-but-set-variable] unsigned ExpectedID = 0; ^ 1 error generated.
1 parent 55c48ee commit 195fe59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ void GICombinerEmitter::emitTestSimplePredicate(raw_ostream &OS) {
26092609
// To avoid emitting a switch, we expect that all those rules are in order.
26102610
// That way we can just get the RuleID from the enum by subtracting
26112611
// (GICXXPred_Invalid + 1).
2612-
unsigned ExpectedID = 0;
2612+
[[maybe_unused]] unsigned ExpectedID = 0;
26132613
for (const auto &ID : keys(AllCombineRules)) {
26142614
assert(ExpectedID == ID && "combine rules are not ordered!");
26152615
++ExpectedID;

0 commit comments

Comments
 (0)