[Mlir-commits] [mlir] [MLIR][LLVM] Suppress unused variable warning. (PR #85467)

Bixia Zheng llvmlistbot at llvm.org
Fri Mar 15 14:08:17 PDT 2024


https://github.com/bixia1 created https://github.com/llvm/llvm-project/pull/85467

None

>From 3f2aa28cc8c13ba1c916751b978475cd6e6200f5 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