[Mlir-commits] [mlir] bfd1d95 - [mlir] Fix unused variable error in builds with asserts enabled.

Adrian Kuegel llvmlistbot at llvm.org
Mon Mar 18 07:14:30 PDT 2024


Author: Adrian Kuegel
Date: 2024-03-18T14:13:47Z
New Revision: bfd1d95de270fe38a287b5f48928df56a39ff8ad

URL: https://github.com/llvm/llvm-project/commit/bfd1d95de270fe38a287b5f48928df56a39ff8ad
DIFF: https://github.com/llvm/llvm-project/commit/bfd1d95de270fe38a287b5f48928df56a39ff8ad.diff

LOG: [mlir] Fix unused variable error in builds with asserts enabled.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
index 3a75b173b757c5..e6ecf26c224818 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
@@ -45,6 +45,7 @@ void CreateNdDescOp::build(OpBuilder &builder, OperationState &state,
                            Type tdesc, TypedValue<MemRefType> source,
                            llvm::ArrayRef<OpFoldResult> offsets) {
   auto ty = source.getType();
+  (void)ty;
   assert(ty && ty.hasStaticShape() && offsets.size() == (size_t)ty.getRank());
 
   llvm::SmallVector<int64_t> staticOffsets;


        


More information about the Mlir-commits mailing list