[Mlir-commits] [mlir] [MLIR][LLVM] Suppress unused variable warning. (PR #85467)
Bixia Zheng
llvmlistbot at llvm.org
Fri Mar 15 14:11:57 PDT 2024
https://github.com/bixia1 updated https://github.com/llvm/llvm-project/pull/85467
>From fcfd107e12ed998cf72e3b650dca08c6c8c46566 Mon Sep 17 00:00:00 2001
From: bixia1 <bixia at google.com>
Date: Fri, 15 Mar 2024 14:03:24 -0700
Subject: [PATCH] [MLIR][LLVM] Suppress unused variable warning.
---
mlir/lib/Target/LLVMIR/DebugTranslation.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mlir/lib/Target/LLVMIR/DebugTranslation.cpp b/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
index eaf9373e7616c5..8cfd500c9ec682 100644
--- a/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
@@ -225,6 +225,8 @@ DebugTranslation::translateRecursive(DIRecursiveTypeAttrInterface attr) {
auto setRecursivePlaceholder = [&](llvm::DIType *placeholder) {
auto [iter, inserted] =
recursiveTypeMap.try_emplace(recursiveId, placeholder);
+ (void)iter;
+ (void)inserted;
assert(inserted && "illegal reuse of recursive id");
};
More information about the Mlir-commits
mailing list