[Mlir-commits] [mlir] 779d54f - [mlir] Fix a -Wunused-variable warning, NFC

Haojian Wu llvmlistbot at llvm.org
Mon Feb 27 08:11:29 PST 2023


Author: Haojian Wu
Date: 2023-02-27T17:11:05+01:00
New Revision: 779d54fd75c19a6d4c27b0a8b115d2e5ccd9768d

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

LOG: [mlir] Fix a -Wunused-variable warning, NFC

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp b/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
index abc5e0039b5b5..d2d31f777d37b 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
@@ -473,7 +473,7 @@ Optional<Value> mlir::linalg::allocateGPUPrivateMemory(
 /// Normal copy to between src and dst.
 LogicalResult mlir::linalg::copyToGPUPrivateMemory(OpBuilder &b, Value src,
                                                    Value dst) {
-  Operation *copyOp = b.create<memref::CopyOp>(src.getLoc(), src, dst);
+  b.create<memref::CopyOp>(src.getLoc(), src, dst);
   return success();
 }
 


        


More information about the Mlir-commits mailing list