[Mlir-commits] [mlir] [mlir] Fix unused-variable warning w/o assertions. (PR #99489)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jul 18 06:17:15 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Johannes Reifferscheid (jreiffers)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/99489.diff
1 Files Affected:
- (modified) mlir/test/CAPI/rewrite.c (+2)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/99489
More information about the Mlir-commits
mailing list