[PATCH] D115355: Fix build failure with GCC 11 in C++20 mode
Evgeny Mandrikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 8 08:36:46 PST 2021
Godin created this revision.
Herald added subscribers: dexonsmith, martong, hiraditya, MatzeB.
Herald added a reviewer: shafik.
Godin requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
See https://wg21.link/cwg2237
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115355
Files:
clang/lib/AST/ASTImporter.cpp
llvm/include/llvm/CodeGen/LiveInterval.h
llvm/include/llvm/Support/BinaryStreamArray.h
llvm/lib/Passes/StandardInstrumentations.cpp
Index: llvm/lib/Passes/StandardInstrumentations.cpp
===================================================================
--- llvm/lib/Passes/StandardInstrumentations.cpp
+++ llvm/lib/Passes/StandardInstrumentations.cpp
@@ -441,7 +441,7 @@
} // namespace
-template <typename T> ChangeReporter<T>::~ChangeReporter<T>() {
+template <typename T> ChangeReporter<T>::~ChangeReporter() {
assert(BeforeStack.empty() && "Problem with Change Printer stack.");
}
Index: llvm/include/llvm/Support/BinaryStreamArray.h
===================================================================
--- llvm/include/llvm/Support/BinaryStreamArray.h
+++ llvm/include/llvm/Support/BinaryStreamArray.h
@@ -323,7 +323,7 @@
FixedStreamArrayIterator(const FixedStreamArray<T> &Array, uint32_t Index)
: Array(Array), Index(Index) {}
- FixedStreamArrayIterator<T>(const FixedStreamArrayIterator<T> &Other)
+ FixedStreamArrayIterator(const FixedStreamArrayIterator<T> &Other)
: Array(Other.Array), Index(Other.Index) {}
FixedStreamArrayIterator<T> &
operator=(const FixedStreamArrayIterator<T> &Other) {
Index: llvm/include/llvm/CodeGen/LiveInterval.h
===================================================================
--- llvm/include/llvm/CodeGen/LiveInterval.h
+++ llvm/include/llvm/CodeGen/LiveInterval.h
@@ -724,7 +724,7 @@
T *P;
public:
- SingleLinkedListIterator<T>(T *P) : P(P) {}
+ SingleLinkedListIterator(T *P) : P(P) {}
SingleLinkedListIterator<T> &operator++() {
P = P->Next;
Index: clang/lib/AST/ASTImporter.cpp
===================================================================
--- clang/lib/AST/ASTImporter.cpp
+++ clang/lib/AST/ASTImporter.cpp
@@ -8397,8 +8397,8 @@
// and destructed after it is created. The construction already performs the
// import of the data.
template <typename T> struct AttrArgImporter {
- AttrArgImporter<T>(const AttrArgImporter<T> &) = delete;
- AttrArgImporter<T>(AttrArgImporter<T> &&) = default;
+ AttrArgImporter(const AttrArgImporter<T> &) = delete;
+ AttrArgImporter(AttrArgImporter<T> &&) = default;
AttrArgImporter<T> &operator=(const AttrArgImporter<T> &) = delete;
AttrArgImporter<T> &operator=(AttrArgImporter<T> &&) = default;
@@ -8417,8 +8417,8 @@
// is used by the attribute classes. This object should be created once for the
// array data to be imported (the array size is not imported, just copied).
template <typename T> struct AttrArgArrayImporter {
- AttrArgArrayImporter<T>(const AttrArgArrayImporter<T> &) = delete;
- AttrArgArrayImporter<T>(AttrArgArrayImporter<T> &&) = default;
+ AttrArgArrayImporter(const AttrArgArrayImporter<T> &) = delete;
+ AttrArgArrayImporter(AttrArgArrayImporter<T> &&) = default;
AttrArgArrayImporter<T> &operator=(const AttrArgArrayImporter<T> &) = delete;
AttrArgArrayImporter<T> &operator=(AttrArgArrayImporter<T> &&) = default;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115355.392796.patch
Type: text/x-patch
Size: 2904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211208/e74d3d7a/attachment.bin>
More information about the llvm-commits
mailing list