From 880f39af6115184ccd1950ff263b7c43993cd438 Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Tue, 5 Sep 2023 10:57:37 +0800 Subject: [Clang] Enable AIX initial-exec TLS mode Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D156076 --- clang/lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index a35f6aa..4b821d1 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1877,7 +1877,7 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, if (Arg *A = Args.getLastArg(OPT_ftlsmodel_EQ)) { if (T.isOSAIX()) { StringRef Name = A->getValue(); - if (Name != "global-dynamic" && Name != "local-exec") + if (Name == "local-dynamic") Diags.Report(diag::err_aix_unsupported_tls_model) << Name; } } -- cgit v1.1