[Mlir-commits] [mlir] 370e9b5 - [mlir] Fix warnings about extra '; '
Kazu Hirata
llvmlistbot at llvm.org
Wed Nov 1 10:25:22 PDT 2023
Author: Kazu Hirata
Date: 2023-11-01T10:25:14-07:00
New Revision: 370e9b5ae64b5d7f2411124aa21c6af278e127be
URL: https://github.com/llvm/llvm-project/commit/370e9b5ae64b5d7f2411124aa21c6af278e127be
DIFF: https://github.com/llvm/llvm-project/commit/370e9b5ae64b5d7f2411124aa21c6af278e127be.diff
LOG: [mlir] Fix warnings about extra ';'
This patch fixes:
mlir/include/mlir/Bytecode/BytecodeImplementation.h:415:4: warning:
extra ‘;’ [-Wpedantic]
mlir/include/mlir/Bytecode/BytecodeWriter.h:110:4: warning: extra
‘;’ [-Wpedantic]
Added:
Modified:
mlir/include/mlir/Bytecode/BytecodeImplementation.h
mlir/include/mlir/Bytecode/BytecodeWriter.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Bytecode/BytecodeImplementation.h b/mlir/include/mlir/Bytecode/BytecodeImplementation.h
index 396c821d4a9fde6..bc91318cf1b6aff 100644
--- a/mlir/include/mlir/Bytecode/BytecodeImplementation.h
+++ b/mlir/include/mlir/Bytecode/BytecodeImplementation.h
@@ -412,7 +412,7 @@ class DialectBytecodeWriter {
template <class T>
FailureOr<const DialectVersion *> getDialectVersion() const {
return getDialectVersion(T::getDialectNamespace());
- };
+ }
};
//===----------------------------------------------------------------------===//
diff --git a/mlir/include/mlir/Bytecode/BytecodeWriter.h b/mlir/include/mlir/Bytecode/BytecodeWriter.h
index 2cc489778d4de32..b82d8ddad38ed1c 100644
--- a/mlir/include/mlir/Bytecode/BytecodeWriter.h
+++ b/mlir/include/mlir/Bytecode/BytecodeWriter.h
@@ -107,7 +107,7 @@ class BytecodeWriterConfig {
void setDialectVersion(std::unique_ptr<DialectVersion> dialectVersion) const {
return setDialectVersion(T::getDialectNamespace(),
std::move(dialectVersion));
- };
+ }
void setDialectVersion(StringRef dialectName,
std::unique_ptr<DialectVersion> dialectVersion) const;
More information about the Mlir-commits
mailing list