[Mlir-commits] [mlir] ea237e2 - [MLIR] Fix build failure due to https://reviews.llvm.org/D87059.
Rahul Joshi
llvmlistbot at llvm.org
Thu Sep 17 16:58:06 PDT 2020
Author: Rahul Joshi
Date: 2020-09-17T16:57:53-07:00
New Revision: ea237e2c8e5d082715effb9cb64158d7c6894e27
URL: https://github.com/llvm/llvm-project/commit/ea237e2c8e5d082715effb9cb64158d7c6894e27
DIFF: https://github.com/llvm/llvm-project/commit/ea237e2c8e5d082715effb9cb64158d7c6894e27.diff
LOG: [MLIR] Fix build failure due to https://reviews.llvm.org/D87059.
- Remove spurious ;
- Make comparison object invokable as const.
Differential Revision: https://reviews.llvm.org/D87872
Added:
Modified:
mlir/include/mlir/TableGen/OpClass.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/TableGen/OpClass.h b/mlir/include/mlir/TableGen/OpClass.h
index f50b78320f98..a82b9dd87976 100644
--- a/mlir/include/mlir/TableGen/OpClass.h
+++ b/mlir/include/mlir/TableGen/OpClass.h
@@ -292,7 +292,7 @@ class OpConstructor : public OpMethod {
template <typename... Args>
OpConstructor(StringRef className, Property property, unsigned id,
Args &&...args)
- : OpMethod("", className, property, id, std::forward<Args>(args)...){};
+ : OpMethod("", className, property, id, std::forward<Args>(args)...) {}
// Add member initializer to constructor initializing `name` with `value`.
void addMemberInitializer(StringRef name, StringRef value);
@@ -366,7 +366,7 @@ class Class {
template <typename MethodTy>
struct MethodCompare {
bool operator()(const std::unique_ptr<MethodTy> &x,
- const std::unique_ptr<MethodTy> &y) {
+ const std::unique_ptr<MethodTy> &y) const {
return x->getID() < y->getID();
}
};
More information about the Mlir-commits
mailing list