[clang] [llvm] [mlir] [LLVM][MLIR] Treewide C++26/2d fixes (PR #223284)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 00:27:15 PDT 2026


================
@@ -161,8 +161,9 @@ class FrontendAction {
 
   std::unique_ptr<ASTUnit> takeCurrentASTUnit();
 
+  void setCurrentInput(const FrontendInputFile &CurrentInput);
   void setCurrentInput(const FrontendInputFile &CurrentInput,
-                       std::unique_ptr<ASTUnit> AST = nullptr);
+                       std::unique_ptr<ASTUnit> AST);
----------------
rdong8 wrote:

putting `= nullptr` triggered the C++26's constexpr `unique_ptr` dtor to be checked, but `ASTUnit` is not a complete type here since it's forward declared.

https://godbolt.org/z/oWPnbdova

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


More information about the llvm-commits mailing list