[CIR] Fix unused variable warning (#195130)

This fixes a warning about a variable that was only being used in an
assert.
This commit is contained in:
Andy Kaylor
2026-04-30 12:50:58 -07:00
committed by GitHub
parent 400258ceb2
commit 2fdb09cf65

View File

@@ -40,7 +40,7 @@ struct LLVMBlockAddressInfo {
uint32_t getTagIndex() { return blockTagOpIndex++; }
void mapBlockTag(cir::BlockAddrInfoAttr info, mlir::LLVM::BlockTagOp tagOp) {
auto result = blockInfoToTagOp.try_emplace(info, tagOp);
[[maybe_unused]] auto result = blockInfoToTagOp.try_emplace(info, tagOp);
assert(result.second &&
"attempting to map a BlockTag operation that is already mapped");
}