Skip to content

Commit 83afcbf

Browse files
committed
[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.
1 parent f128607 commit 83afcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/DebugTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ DebugTranslation::translateRecursive(DIRecursiveTypeAttrInterface attr) {
223223
}
224224

225225
auto setRecursivePlaceholder = [&](llvm::DIType *placeholder) {
226-
auto [iter, inserted] =
226+
[[maybe_unused]] auto [iter, inserted] =
227227
recursiveTypeMap.try_emplace(recursiveId, placeholder);
228228
assert(inserted && "illegal reuse of recursive id");
229229
};

0 commit comments

Comments
 (0)