[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:
@@ -40,7 +40,7 @@ struct LLVMBlockAddressInfo {
|
|||||||
uint32_t getTagIndex() { return blockTagOpIndex++; }
|
uint32_t getTagIndex() { return blockTagOpIndex++; }
|
||||||
|
|
||||||
void mapBlockTag(cir::BlockAddrInfoAttr info, mlir::LLVM::BlockTagOp tagOp) {
|
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 &&
|
assert(result.second &&
|
||||||
"attempting to map a BlockTag operation that is already mapped");
|
"attempting to map a BlockTag operation that is already mapped");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user