Skip to content

Commit 99207ae

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Dialect/SPIRV/IR/ImageOps.cpp:33:24: error: unused variable 'noSupportOperands' [-Werror,-Wunused-variable]
1 parent 37559c8 commit 99207ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Dialect/SPIRV/IR/ImageOps.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ static LogicalResult verifyImageOperands(Operation *imageOp,
4141

4242
assert(!spirv::bitEnumContainsAny(attr.getValue(), noSupportOperands) &&
4343
"unimplemented operands of Image Operands");
44+
(void)noSupportOperands;
4445

4546
return success();
4647
}

0 commit comments

Comments
 (0)