[mlir] Fix a warning
authorKazu Hirata <kazu@google.com>
Mon, 15 May 2023 17:06:15 +0000 (10:06 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 15 May 2023 17:06:15 +0000 (10:06 -0700)
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]

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

index 5e42602bc3eaac80387ccd343a3f740146927703..2529bf712898c611e61921c33b9d4d51af4979dd 100644 (file)
@@ -42,7 +42,7 @@ bool isStaticShapeAndContiguousRowMajor(MemRefType type) {
 
   // All dims are unit-strided or size-1.
   return curDim < 0;
-};
+}
 
 } // namespace memref
 } // namespace mlir