Skip to content

Commit 016c301

Browse files
authored
[NFC] Use [[maybe_unused]] for variable used in assertion (#153639)
1 parent b62b65a commit 016c301

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,8 @@ expandToSwitch(CallBase *CB, const JumpTableTy &JT, DomTreeUpdater &DTU,
149149
std::numeric_limits<uint32_t>::max(), TotalCount);
150150

151151
for (const auto &[G, C] : Targets) {
152-
auto It = GuidToCounter.insert({G, C});
152+
[[maybe_unused]] auto It = GuidToCounter.insert({G, C});
153153
assert(It.second);
154-
(void)It;
155154
}
156155
}
157156
for (auto [Index, Func] : llvm::enumerate(JT.Funcs)) {

0 commit comments

Comments
 (0)