Skip to content

Commit 2abd71e

Browse files
committed
[mlir] Fix -Wunused-variable in DebugImporter.cpp (NFC)
llvm-project/mlir/lib/Target/LLVMIR/DebugImporter.cpp:377:10: error: unused variable '[_, inserted]' [-Werror,-Wunused-variable] auto [_, inserted] = dependentCache.try_emplace( ^ 1 error generated.
1 parent c2067c1 commit 2abd71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/DebugImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ DebugImporter::RecursionPruner::finalizeTranslation(llvm::DINode *node,
374374

375375
// Insert the result into our internal cache if it's not self-contained.
376376
if (!state.unboundSelfRefs.empty()) {
377-
auto [_, inserted] = dependentCache.try_emplace(
377+
[[maybe_unused]] auto [_, inserted] = dependentCache.try_emplace(
378378
node, DependentTranslation{result, state.unboundSelfRefs});
379379
assert(inserted && "invalid state: caching the same DINode twice");
380380
return {result, false};

0 commit comments

Comments
 (0)