Skip to content

[mlir] Fix unused-variable warning w/o assertions. #99489

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
Jul 18, 2024
Merged

Conversation

jreiffers
Copy link
Member

No description provided.

@llvmbot llvmbot added the mlir label Jul 18, 2024
@llvmbot
Copy link
Member

llvmbot commented Jul 18, 2024

@llvm/pr-subscribers-mlir

Author: Johannes Reifferscheid (jreiffers)

Changes

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

1 Files Affected:

  • (modified) mlir/test/CAPI/rewrite.c (+2)
diff --git a/mlir/test/CAPI/rewrite.c b/mlir/test/CAPI/rewrite.c
index a8b593eabb781..b33d225767046 100644
--- a/mlir/test/CAPI/rewrite.c
+++ b/mlir/test/CAPI/rewrite.c
@@ -68,6 +68,8 @@ void testInsertionPoint(MlirContext ctx) {
   // Get insertion blocks
   MlirBlock block1 = mlirRewriterBaseGetBlock(rewriter);
   MlirBlock block2 = mlirRewriterBaseGetInsertionBlock(rewriter);
+  (void)block1;
+  (void)block2;
   assert(body.ptr == block1.ptr);
   assert(body.ptr == block2.ptr);
 

@jreiffers jreiffers merged commit 15495b8 into llvm:main Jul 18, 2024
6 of 8 checks passed
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary: 

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60250923
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants