[Mlir-commits] [mlir] 83afcbf - [mlir] Fix -Wunused-variable in DebugTranslation.cpp (NFC)
Jie Fu
llvmlistbot at llvm.org
Fri Mar 15 16:23:46 PDT 2024
Author: Jie Fu
Date: 2024-03-16T07:22:34+08:00
New Revision: 83afcbf5f39b9766fd4e5c7d577e308d71f9edc1
URL: https://github.com/llvm/llvm-project/commit/83afcbf5f39b9766fd4e5c7d577e308d71f9edc1
DIFF: https://github.com/llvm/llvm-project/commit/83afcbf5f39b9766fd4e5c7d577e308d71f9edc1.diff
LOG: [mlir] Fix -Wunused-variable in DebugTranslation.cpp (NFC)
llvm-project/mlir/lib/Target/LLVMIR/DebugTranslation.cpp:226:10:
error: unused variable '[iter, inserted]' [-Werror,-Wunused-variable]
auto [iter, inserted] =
^
1 error generated.
Added:
Modified:
mlir/lib/Target/LLVMIR/DebugTranslation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Target/LLVMIR/DebugTranslation.cpp b/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
index eaf9373e7616c5..226fa409bedda6 100644
--- a/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/DebugTranslation.cpp
@@ -223,7 +223,7 @@ DebugTranslation::translateRecursive(DIRecursiveTypeAttrInterface attr) {
}
auto setRecursivePlaceholder = [&](llvm::DIType *placeholder) {
- auto [iter, inserted] =
+ [[maybe_unused]] auto [iter, inserted] =
recursiveTypeMap.try_emplace(recursiveId, placeholder);
assert(inserted && "illegal reuse of recursive id");
};
More information about the Mlir-commits
mailing list