aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/AliasAnalysis.cpp
diff options
context:
space:
mode:
authorJonathan Tanner <10051116+aDifferentJT@users.noreply.github.com>2024-09-20 21:56:40 +0100
committerGitHub <noreply@github.com>2024-09-20 22:56:40 +0200
commit76bc1eddb2cf8b6cc073649ade21b59bbed438a2 (patch)
tree9d57d14923fb041c1315ff2bffa7e6fcd5cdd569 /llvm/lib/Analysis/AliasAnalysis.cpp
parent6959ec91d7f8b579a7698cfe244d434b177af493 (diff)
downloadllvm-76bc1eddb2cf8b6cc073649ade21b59bbed438a2.zip
llvm-76bc1eddb2cf8b6cc073649ade21b59bbed438a2.tar.gz
llvm-76bc1eddb2cf8b6cc073649ade21b59bbed438a2.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Analysis/AliasAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/AliasAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp
index 9f529fd..d90bb213 100644
--- a/llvm/lib/Analysis/AliasAnalysis.cpp
+++ b/llvm/lib/Analysis/AliasAnalysis.cpp
@@ -73,6 +73,8 @@ static cl::opt<bool> EnableAATrace("aa-trace", cl::Hidden, cl::init(false));
static const bool EnableAATrace = false;
#endif
+AAResults::AAResults(const TargetLibraryInfo &TLI) : TLI(TLI) {}
+
AAResults::AAResults(AAResults &&Arg)
: TLI(Arg.TLI), AAs(std::move(Arg.AAs)), AADeps(std::move(Arg.AADeps)) {}