Skip to content

Commit 258091e

Browse files
committed
[mlir] Fix -Wunused-variable in XeGPUOps.cpp (NFC)
llvm-project/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp:47:8: error: unused variable 'ty' [-Werror,-Wunused-variable] auto ty = source.getType(); ^ 1 error generated.
1 parent 5a6c691 commit 258091e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static std::string makeString(T array, bool breakline = false) {
4444
void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
4545
Type tdesc, TypedValue<MemRefType> source,
4646
llvm::ArrayRef<OpFoldResult> offsets) {
47-
auto ty = source.getType();
47+
[[maybe_unused]] auto ty = source.getType();
4848
assert(ty.hasStaticShape() && offsets.size() == (size_t)ty.getRank());
4949

5050
llvm::SmallVector<int64_t> staticOffsets;

0 commit comments

Comments
 (0)