[PATCH] D154782: [NFC] Fix builds on recent GCC with C++20 enabled

Alexander Batashev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 09:45:04 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG17508cbcc628: [NFC] Fix builds on recent GCC with C++20 enabled (authored by alexbatashev).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154782/new/

https://reviews.llvm.org/D154782

Files:
  llvm/include/llvm/CodeGen/ByteProvider.h
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp


Index: llvm/lib/Transforms/IPO/AttributorAttributes.cpp
===================================================================
--- llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -3472,8 +3472,7 @@
 struct CachedReachabilityAA : public BaseTy {
   using RQITy = ReachabilityQueryInfo<ToTy>;
 
-  CachedReachabilityAA<BaseTy, ToTy>(const IRPosition &IRP, Attributor &A)
-      : BaseTy(IRP, A) {}
+  CachedReachabilityAA(const IRPosition &IRP, Attributor &A) : BaseTy(IRP, A) {}
 
   /// See AbstractAttribute::isQueryAA.
   bool isQueryAA() const override { return true; }
Index: llvm/include/llvm/CodeGen/ByteProvider.h
===================================================================
--- llvm/include/llvm/CodeGen/ByteProvider.h
+++ llvm/include/llvm/CodeGen/ByteProvider.h
@@ -29,8 +29,7 @@
 /// are used to extract Bytes.
 template <typename ISelOp> class ByteProvider {
 private:
-  ByteProvider<ISelOp>(std::optional<ISelOp> Src, int64_t DestOffset,
-                       int64_t SrcOffset)
+  ByteProvider(std::optional<ISelOp> Src, int64_t DestOffset, int64_t SrcOffset)
       : Src(Src), DestOffset(DestOffset), SrcOffset(SrcOffset) {}
 
   // TODO -- use constraint in c++20


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154782.541605.patch
Type: text/x-patch
Size: 1245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230718/a326672b/attachment.bin>


More information about the llvm-commits mailing list