Skip to content

[MLIR][LLVM] Suppress unused variable warning. #85467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Conversation

bixia1
Copy link
Contributor

@bixia1 bixia1 commented Mar 15, 2024

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Mar 15, 2024

@llvm/pr-subscribers-mlir-llvm

@llvm/pr-subscribers-mlir

Author: Bixia Zheng (bixia1)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/85467.diff

1 Files Affected:

  • (modified) mlir/lib/Target/LLVMIR/DebugTranslation.cpp (+2)
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");
   };
 

Copy link
Contributor

@zyx-billy zyx-billy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!
(BTW inserted is used in the assert, so not sure if that one's necessary, but SG).

@bixia1 bixia1 merged commit 0ead2bd into llvm:main Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants