[Mlir-commits] [mlir] fc7b860 - [mlir][nfc] Fix syntax to conform with the C++20 restrictions on error-prone redundancy
Eric Schweitz
llvmlistbot at llvm.org
Mon Mar 20 09:12:26 PDT 2023
Author: Eric Schweitz
Date: 2023-03-20T09:11:06-07:00
New Revision: fc7b860e5e58791f06678dddcd5117ce028bef64
URL: https://github.com/llvm/llvm-project/commit/fc7b860e5e58791f06678dddcd5117ce028bef64
DIFF: https://github.com/llvm/llvm-project/commit/fc7b860e5e58791f06678dddcd5117ce028bef64.diff
LOG: [mlir][nfc] Fix syntax to conform with the C++20 restrictions on error-prone redundancy
See: http://eel.is/c++draft/diff.cpp17.class#2
Reviewed By: springerm
Differential Revision: https://reviews.llvm.org/D146308
Added:
Modified:
mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
index 0f630628016ae..b6644963a751d 100644
--- a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
+++ b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h
@@ -60,16 +60,16 @@ struct AliasingOpResult {
template <typename T> class AliasList {
public:
/// Create an empty list of aliases.
- AliasList<T>() = default;
+ AliasList() = default;
/// Create a list of aliases.
- AliasList<T>(std::initializer_list<T> elems) {
+ AliasList(std::initializer_list<T> elems) {
for (T alias : elems)
addAlias(alias);
}
/// Create a list of aliases.
- AliasList<T>(SmallVector<T> &&aliases) : aliases(std::move(aliases)) {}
+ AliasList(SmallVector<T> &&aliases) : aliases(std::move(aliases)) {}
ArrayRef<T> getAliases() const { return aliases; }
More information about the Mlir-commits
mailing list