From 2fdb09cf65e680094bdb3573435467ae544c7490 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Thu, 30 Apr 2026 12:50:58 -0700 Subject: [PATCH] [CIR] Fix unused variable warning (#195130) This fixes a warning about a variable that was only being used in an assert. --- clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h index 6133900c503b..c0abb40b7304 100644 --- a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h +++ b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h @@ -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"); }