[Mlir-commits] [mlir] [MLIR][LLVM] Suppress unused variable warning. (PR #85467)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Mar 15 14:08:45 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Bixia Zheng (bixia1)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/85467.diff
1 Files Affected:
- (modified) mlir/lib/Target/LLVMIR/DebugTranslation.cpp (+2)
``````````diff
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");
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/85467
More information about the Mlir-commits
mailing list