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

This commit is contained in:
Johannes Reifferscheid 2024-07-18 15:20:57 +02:00 committed by GitHub
parent 561246e902
commit 15495b8cd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);