Skip to content

Commit 8972fcd

Browse files
committed
merge main into amd-staging
xfail new test: flang-test/Lower/OpenMP/map-character.f90
2 parents f17a5ce + 3009aa7 commit 8972fcd

File tree

155 files changed

+8102
-1759
lines changed

Some content is hidden

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

155 files changed

+8102
-1759
lines changed

.github/workflows/containers/github-action-ci-windows/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ RUN choco install -y handle
108108
109109
RUN pip3 install pywin32 buildbot-worker==2.8.4
110110
111-
ARG RUNNER_VERSION=2.323.0
111+
ARG RUNNER_VERSION=2.324.0
112112
ENV RUNNER_VERSION=$RUNNER_VERSION
113113
114114
RUN powershell -Command \

.github/workflows/containers/github-action-ci/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM docker.io/library/ubuntu:24.04 as base
22
ENV LLVM_SYSROOT=/opt/llvm
33

44
FROM base as stage1-toolchain
5-
ENV LLVM_VERSION=20.1.1
5+
ENV LLVM_VERSION=20.1.4
66

77
RUN apt-get update && \
88
apt-get install -y \
@@ -86,7 +86,7 @@ WORKDIR /home/gha
8686

8787
FROM ci-container as ci-container-agent
8888

89-
ENV GITHUB_RUNNER_VERSION=2.323.0
89+
ENV GITHUB_RUNNER_VERSION=2.324.0
9090

9191
RUN mkdir actions-runner && \
9292
cd actions-runner && \

bolt/lib/Profile/YAMLProfileReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ Error YAMLProfileReader::readProfile(BinaryContext &BC) {
887887
}
888888

889889
bool YAMLProfileReader::usesEvent(StringRef Name) const {
890-
return YamlBP.Header.EventNames.find(std::string(Name)) != StringRef::npos;
890+
return StringRef(YamlBP.Header.EventNames).contains(Name);
891891
}
892892

893893
} // end namespace bolt

bolt/test/perf2bolt/perf_test.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ REQUIRES: system-linux, perf
44

55
RUN: %clang %S/Inputs/perf_test.c -fuse-ld=lld -Wl,--script=%S/Inputs/perf_test.lds -o %t
66
RUN: perf record -Fmax -e cycles:u -o %t2 -- %t
7-
RUN: perf2bolt %t -p=%t2 -o %t3 -nl -ignore-build-id 2>&1 | FileCheck %s
7+
RUN: perf2bolt %t -p=%t2 -o %t3 -nl -ignore-build-id --show-density 2>&1 | FileCheck %s
88

99
CHECK-NOT: PERF2BOLT-ERROR
1010
CHECK-NOT: !! WARNING !! This high mismatch ratio indicates the input binary is probably not the same binary used during profiling collection.
1111
CHECK: BOLT-INFO: Functions with density >= {{.*}} account for 99.00% total sample counts.
1212

1313
RUN: %clang %S/Inputs/perf_test.c -no-pie -fuse-ld=lld -o %t4
1414
RUN: perf record -Fmax -e cycles:u -o %t5 -- %t4
15-
RUN: perf2bolt %t4 -p=%t5 -o %t6 -nl -ignore-build-id 2>&1 | FileCheck %s
15+
RUN: perf2bolt %t4 -p=%t5 -o %t6 -nl -ignore-build-id --show-density 2>&1 | FileCheck %s

clang-tools-extra/clangd/Hover.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,9 +1270,8 @@ void maybeAddUsedSymbols(ParsedAST &AST, HoverInfo &HI, const Inclusion &Inc) {
12701270
for (const auto &UsedSymbolDecl : UsedSymbols)
12711271
HI.UsedSymbolNames.push_back(getSymbolName(UsedSymbolDecl));
12721272
llvm::sort(HI.UsedSymbolNames);
1273-
HI.UsedSymbolNames.erase(
1274-
std::unique(HI.UsedSymbolNames.begin(), HI.UsedSymbolNames.end()),
1275-
HI.UsedSymbolNames.end());
1273+
HI.UsedSymbolNames.erase(llvm::unique(HI.UsedSymbolNames),
1274+
HI.UsedSymbolNames.end());
12761275
}
12771276

12781277
} // namespace

clang-tools-extra/include-cleaner/lib/HTMLReport.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ class Reporter {
186186
R.Satisfied = true;
187187
// Include pointers are meaningfully ordered as they are backed by a vector.
188188
llvm::sort(R.Includes);
189-
R.Includes.erase(std::unique(R.Includes.begin(), R.Includes.end()),
190-
R.Includes.end());
189+
R.Includes.erase(llvm::unique(R.Includes), R.Includes.end());
191190

192191
if (!R.Headers.empty())
193192
R.Insert =

clang-tools-extra/include-cleaner/lib/Record.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ class PragmaIncludes::RecordPragma : public PPCallbacks, public CommentHandler {
205205
void EndOfMainFile() override {
206206
for (auto &It : Out->IWYUExportBy) {
207207
llvm::sort(It.getSecond());
208-
It.getSecond().erase(
209-
std::unique(It.getSecond().begin(), It.getSecond().end()),
210-
It.getSecond().end());
208+
It.getSecond().erase(llvm::unique(It.getSecond()), It.getSecond().end());
211209
}
212210
Out->Arena.emplace_back(std::move(Arena));
213211
}

clang-tools-extra/include-cleaner/lib/WalkAST.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ class ASTWalker : public RecursiveASTVisitor<ASTWalker> {
321321
return true;
322322
}
323323

324+
bool VisitCleanupAttr(CleanupAttr *attr) {
325+
report(attr->getLocation(), attr->getFunctionDecl());
326+
return true;
327+
}
328+
324329
// TypeLoc visitors.
325330
void reportType(SourceLocation RefLoc, NamedDecl *ND) {
326331
// Reporting explicit references to types nested inside classes can cause

clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,5 +570,11 @@ TEST(WalkAST, OperatorNewDelete) {
570570
testWalk("struct A { static void $ambiguous^operator delete(void*); };",
571571
"void foo() { A a; ^delete &a; }");
572572
}
573+
574+
TEST(WalkAST, CleanupAttr) {
575+
testWalk("void* $explicit^freep(void *p);",
576+
"void foo() { __attribute__((^__cleanup__(freep))) char* x = 0; }");
577+
}
578+
573579
} // namespace
574580
} // namespace clang::include_cleaner

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ Bug Fixes in This Version
598598
``#include`` directive. (#GH138094)
599599
- Fixed a crash during constant evaluation involving invalid lambda captures
600600
(#GH138832)
601+
- Fixed assertion failures when generating name lookup table in modules. (#GH61065, #GH134739)
601602

602603
Bug Fixes to Compiler Builtins
603604
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)