[Mlir-commits] [mlir] dd6dde1 - [mlir][Vector] Fix -Wunused-function in VectorEmulateNarrowType.cpp (NFC)

Jie Fu llvmlistbot at llvm.org
Mon Sep 18 06:48:54 PDT 2023


Author: Jie Fu
Date: 2023-09-18T21:47:33+08:00
New Revision: dd6dde116682eeb6393cbe27e978f8df1acafdb3

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

LOG: [mlir][Vector] Fix -Wunused-function in VectorEmulateNarrowType.cpp (NFC)

/data/llvm-project/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp:229:21: error: unused function 'operator<<' [-Werror,-Wunused-function]
static raw_ostream &operator<<(raw_ostream &os,
                    ^
1 error generated.

Added: 
    

Modified: 
    mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
index 9d659bf694a2445..4201f106f894b38 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
@@ -226,7 +226,7 @@ struct BitCastBitsEnumerator {
 
 } // namespace
 
-static raw_ostream &operator<<(raw_ostream &os,
+[[maybe_unused]] static raw_ostream &operator<<(raw_ostream &os,
                                const SmallVector<SourceElementRangeList> &vec) {
   for (const auto &l : vec) {
     for (auto it : llvm::enumerate(l)) {


        


More information about the Mlir-commits mailing list