Skip to content

Commit 8559fe5

Browse files
committed
merge main into amd-staging
2 parents b7dbc44 + ed2f89f commit 8559fe5

File tree

180 files changed

+1316
-924
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+1316
-924
lines changed

.github/workflows/libcxx-build-and-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
stage1:
3838
if: github.repository_owner == 'llvm'
3939
runs-on: libcxx-self-hosted-linux
40-
container: ghcr.io/llvm/libcxx-linux-builder:b6bb9dc5abd7c6452c13a53fa8949cb259db459b
40+
container: ghcr.io/llvm/libcxx-linux-builder:2b57ebb50b6d418e70382e655feaa619b558e254
4141
continue-on-error: false
4242
strategy:
4343
fail-fast: false
@@ -75,7 +75,7 @@ jobs:
7575
stage2:
7676
if: github.repository_owner == 'llvm'
7777
runs-on: libcxx-self-hosted-linux
78-
container: ghcr.io/llvm/libcxx-linux-builder:b6bb9dc5abd7c6452c13a53fa8949cb259db459b
78+
container: ghcr.io/llvm/libcxx-linux-builder:2b57ebb50b6d418e70382e655feaa619b558e254
7979
needs: [ stage1 ]
8080
continue-on-error: false
8181
strategy:
@@ -163,7 +163,7 @@ jobs:
163163
- config: 'generic-msan'
164164
machine: libcxx-self-hosted-linux
165165
runs-on: ${{ matrix.machine }}
166-
container: ghcr.io/llvm/libcxx-linux-builder:b6bb9dc5abd7c6452c13a53fa8949cb259db459b
166+
container: ghcr.io/llvm/libcxx-linux-builder:2b57ebb50b6d418e70382e655feaa619b558e254
167167
steps:
168168
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
169169
- name: ${{ matrix.config }}

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ Bug Fixes to C++ Support
653653
- Clang no longer crashes when establishing subsumption between some constraint expressions. (#GH122581)
654654
- Clang now issues an error when placement new is used to modify a const-qualified variable
655655
in a ``constexpr`` function. (#GH131432)
656+
- Fixed an incorrect TreeTransform for calls to ``consteval`` functions if a conversion template is present. (#GH137885)
656657
- Clang now emits a warning when class template argument deduction for alias templates is used in C++17. (#GH133806)
657658
- Fix a crash when checking the template template parameters of a dependent lambda appearing in an alias declaration.
658659
(#GH136432), (#GH137014), (#GH138018)

clang/include/clang/Driver/Distro.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class Distro {
3939
DebianBullseye,
4040
DebianBookworm,
4141
DebianTrixie,
42+
DebianForky,
43+
DebianDuke,
4244
Exherbo,
4345
RHEL5,
4446
RHEL6,
@@ -129,7 +131,7 @@ class Distro {
129131
bool IsOpenSUSE() const { return DistroVal == OpenSUSE; }
130132

131133
bool IsDebian() const {
132-
return DistroVal >= DebianLenny && DistroVal <= DebianTrixie;
134+
return DistroVal >= DebianLenny && DistroVal <= DebianDuke;
133135
}
134136

135137
bool IsUbuntu() const {

clang/include/clang/Driver/Options.td

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,11 @@ def fstrict_flex_arrays_EQ : Joined<["-"], "fstrict-flex-arrays=">, Group<f_Grou
15601560
Visibility<[ClangOption, CC1Option]>,
15611561
NormalizedValuesScope<"LangOptions::StrictFlexArraysLevelKind">,
15621562
NormalizedValues<["Default", "OneZeroOrIncomplete", "ZeroOrIncomplete", "IncompleteOnly"]>,
1563-
HelpText<"Enable optimizations based on the strict definition of flexible arrays">,
1563+
HelpText<"Enable optimizations based on the strict definition of flexible arrays.">,
1564+
DocBrief<[{If ``<n>`` is equal to 0, any trailing array member is considered a flexible array.
1565+
If ``<n>`` is equal to 1, trailing array members of size 0, 1 or undefined are considered flexible arrays.
1566+
If ``<n>`` is equal to 2, trailing array members of size 0 or undefined are considered flexible arrays.
1567+
If ``<n>`` is equal to 3, only trailing array members of undefined size are considered flexible arrays.}]>,
15641568
MarshallingInfoEnum<LangOpts<"StrictFlexArraysLevel">, "Default">;
15651569
defm apple_pragma_pack : BoolFOption<"apple-pragma-pack",
15661570
LangOpts<"ApplePragmaPack">, DefaultFalse,

clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ class SMTConstraintManager : public clang::ento::SimpleConstraintManager {
324324

325325
// Construct the logical AND of all the constraints
326326
if (I != IE) {
327-
std::vector<llvm::SMTExprRef> ASTs;
328-
329327
llvm::SMTExprRef Constraint = I++->second;
330328
while (I != IE) {
331329
Constraint = Solver->mkAnd(Constraint, I++->second);

clang/lib/AST/DeclBase.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,8 +2149,7 @@ void DeclContext::makeDeclVisibleInContextImpl(NamedDecl *D, bool Internal) {
21492149
// have already checked the external source.
21502150
if (!Internal)
21512151
if (ExternalASTSource *Source = getParentASTContext().getExternalSource())
2152-
if (hasExternalVisibleStorage() &&
2153-
Map->find(D->getDeclName()) == Map->end())
2152+
if (hasExternalVisibleStorage() && !Map->contains(D->getDeclName()))
21542153
Source->FindExternalVisibleDeclsByName(this, D->getDeclName(),
21552154
D->getDeclContext());
21562155

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,6 @@ RValue CodeGenFunction::emitBuiltinOSLogFormat(const CallExpr &E) {
19491949
analyze_os_log::OSLogBufferLayout Layout;
19501950
analyze_os_log::computeOSLogBufferLayout(Ctx, &E, Layout);
19511951
Address BufAddr = EmitPointerWithAlignment(E.getArg(0));
1952-
llvm::SmallVector<llvm::Value *, 4> RetainableOperands;
19531952

19541953
// Ignore argument 1, the format string. It is not currently used.
19551954
CallArgList Args;

clang/lib/CodeGen/CGCUDANV.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,6 @@ void CGNVCUDARuntime::transformManagedVars() {
11941194
// registered. The linker will provide a pointer to this section so we can
11951195
// register the symbols with the linked device image.
11961196
void CGNVCUDARuntime::createOffloadingEntries() {
1197-
SmallVector<char, 32> Out;
11981197
llvm::object::OffloadKind Kind = CGM.getLangOpts().HIP
11991198
? llvm::object::OffloadKind::OFK_HIP
12001199
: llvm::object::OffloadKind::OFK_Cuda;

clang/lib/CodeGen/CGDeclCXX.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ void CodeGenModule::EmitCXXModuleInitFunc(Module *Primary) {
748748
// Add any initializers with specified priority; this uses the same approach
749749
// as EmitCXXGlobalInitFunc().
750750
if (!PrioritizedCXXGlobalInits.empty()) {
751-
SmallVector<llvm::Function *, 8> LocalCXXGlobalInits;
752751
llvm::array_pod_sort(PrioritizedCXXGlobalInits.begin(),
753752
PrioritizedCXXGlobalInits.end());
754753
for (SmallVectorImpl<GlobalInitData>::iterator

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,8 +3959,6 @@ void CodeGenFunction::EmitCfiCheckFail() {
39593959
{CFITCK_UnrelatedCast, SanitizerKind::SO_CFIUnrelatedCast},
39603960
{CFITCK_ICall, SanitizerKind::SO_CFIICall}};
39613961

3962-
SmallVector<std::pair<llvm::Value *, SanitizerKind::SanitizerOrdinal>, 5>
3963-
Checks;
39643962
for (auto CheckKindOrdinalPair : CheckKinds) {
39653963
int Kind = CheckKindOrdinalPair.first;
39663964
SanitizerKind::SanitizerOrdinal Ordinal = CheckKindOrdinalPair.second;

0 commit comments

Comments
 (0)