[Mlir-commits] [mlir] 1c983af - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Mon May 15 10:06:25 PDT 2023


Author: Kazu Hirata
Date: 2023-05-15T10:06:15-07:00
New Revision: 1c983af96a5d9bdd654dfe8cb8b06b97dfa03222

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

LOG: [mlir] Fix a warning

This patch fixes:

  mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp:45:2: error: extra ';'
  outside of a function is incompatible with C++98
  [-Werror,-Wc++98-compat-extra-semi]

Added: 
    

Modified: 
    mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp b/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp
index 5e42602bc3ea..2529bf712898 100644
--- a/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp
+++ b/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp
@@ -42,7 +42,7 @@ bool isStaticShapeAndContiguousRowMajor(MemRefType type) {
 
   // All dims are unit-strided or size-1.
   return curDim < 0;
-};
+}
 
 } // namespace memref
 } // namespace mlir


        


More information about the Mlir-commits mailing list