[all-commits] [llvm/llvm-project] 38934a: [AA] Take account of C++23's stricter rules for fo...

Jonathan Tanner via All-commits all-commits at lists.llvm.org
Mon Sep 23 23:33:06 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 38934af5047d0a9b78820ca6b1edbd5ec5fbcf83
      https://github.com/llvm/llvm-project/commit/38934af5047d0a9b78820ca6b1edbd5ec5fbcf83
  Author: Jonathan Tanner <10051116+aDifferentJT at users.noreply.github.com>
  Date:   2024-09-24 (Tue, 24 Sep 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/AliasAnalysis.h
    M llvm/lib/Analysis/AliasAnalysis.cpp

  Log Message:
  -----------
  [AA] Take account of C++23's stricter rules for forward declarations (NFC) (#109416)

C++23 has stricter rules for forward declarations around
std::unique_ptr, this means that the inline declaration of the
constructor was failing under clang in C++23 mode, switching to an
out-of-line definition of the constructor fixes this.

This was fairly major impact as it blocked inclusion of a lot of headers
under clang in C++23 mode.

Fixes #106597.

(cherry picked from commit 76bc1eddb2cf8b6cc073649ade21b59bbed438a2)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list