[mlir] Fix some of the warnings in MLIR code.
authorAlexander Belyaev <pifon@google.com>
Thu, 11 Jun 2020 17:22:48 +0000 (19:22 +0200)
committerAlexander Belyaev <pifon@google.com>
Thu, 11 Jun 2020 20:18:32 +0000 (22:18 +0200)
commite9ac7927483ce2e2d92eb188c20332a1049bb69e
treea859bed8d3f9d2477826b1ebc0d785ee6e99da93
parent8fa3e8fa149203279dba9f4ace99575471cb46ac
[mlir] Fix some of the warnings in MLIR code.

Summary:
* extra ';' in the following files:
    mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
    mlir/lib/Dialect/Shape/IR/Shape.cpp

* base class ‘mlir::ConvertVectorToSCFBase<ConvertVectorToSCFPass>’
  should be explicitly initialized in the copy constructor [-Wextra] in
    mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp

* warning: ‘bool Expression::operator==(const Expression&) const’
  defined but not used [-Wunused-function] in
    mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp

Differential Revision: https://reviews.llvm.org/D81673
mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp