[llvm] [llvm] Support building with c++23 (PR #154372)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 26 01:54:25 PDT 2025


================
@@ -36,7 +36,7 @@ class MachineFunctionAnalysis
     std::unique_ptr<MachineFunction> MF;
 
   public:
-    Result(std::unique_ptr<MachineFunction> MF) : MF(std::move(MF)) {}
+    Result(std::unique_ptr<MachineFunction> MF);
----------------
nikic wrote:

@AaronBallman Could you please take a look at this? Is this being "Won't Fix" still the current stance of Clang? This seems like a bad footgun for adoption of future C++ standards :(

https://github.com/llvm/llvm-project/pull/154372


More information about the llvm-commits mailing list