Skip to content

Commit 7ae4dd6

Browse files
committed
Merge from 'master' to 'sycl-web' (#35)
CONFLICT (content): Merge conflict in libclc/CMakeLists.txt
2 parents 48ec8fc + e6bb1d6 commit 7ae4dd6

File tree

161 files changed

+2369
-835
lines changed

Some content is hidden

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

161 files changed

+2369
-835
lines changed

clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,7 @@ class AnalyzerOptions : public RefCountedBase<AnalyzerOptions> {
292292
};
293293

294294
bool isUnknownAnalyzerConfig(StringRef Name) const {
295-
296-
assert(std::is_sorted(AnalyzerConfigCmdFlags.begin(),
297-
AnalyzerConfigCmdFlags.end()));
295+
assert(llvm::is_sorted(AnalyzerConfigCmdFlags));
298296

299297
return !std::binary_search(AnalyzerConfigCmdFlags.begin(),
300298
AnalyzerConfigCmdFlags.end(), Name);

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5358,7 +5358,7 @@ findARMVectorIntrinsicInMap(ArrayRef<ARMVectorIntrinsicInfo> IntrinsicMap,
53585358

53595359
#ifndef NDEBUG
53605360
if (!MapProvenSorted) {
5361-
assert(std::is_sorted(std::begin(IntrinsicMap), std::end(IntrinsicMap)));
5361+
assert(llvm::is_sorted(IntrinsicMap));
53625362
MapProvenSorted = true;
53635363
}
53645364
#endif

clang/lib/CodeGen/CGObjCMac.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5451,7 +5451,7 @@ llvm::Constant *IvarLayoutBuilder::buildBitmap(CGObjCCommonMac &CGObjC,
54515451
// This isn't a stable sort, but our algorithm should handle it fine.
54525452
llvm::array_pod_sort(IvarsInfo.begin(), IvarsInfo.end());
54535453
} else {
5454-
assert(std::is_sorted(IvarsInfo.begin(), IvarsInfo.end()));
5454+
assert(llvm::is_sorted(IvarsInfo));
54555455
}
54565456
assert(IvarsInfo.back().Offset < InstanceEnd);
54575457

clang/lib/Format/Format.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,8 +2049,7 @@ static void sortCppIncludes(const FormatStyle &Style,
20492049
// enough as additional newlines might be added or removed across #include
20502050
// blocks. This we handle below by generating the updated #imclude blocks and
20512051
// comparing it to the original.
2052-
if (Indices.size() == Includes.size() &&
2053-
std::is_sorted(Indices.begin(), Indices.end()) &&
2052+
if (Indices.size() == Includes.size() && llvm::is_sorted(Indices) &&
20542053
Style.IncludeStyle.IncludeBlocks == tooling::IncludeStyle::IBS_Preserve)
20552054
return;
20562055

clang/lib/Format/SortJavaScriptImports.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class JavaScriptImportSorter : public TokenAnalyzer {
144144
llvm::stable_sort(Indices, [&](unsigned LHSI, unsigned RHSI) {
145145
return References[LHSI] < References[RHSI];
146146
});
147-
bool ReferencesInOrder = std::is_sorted(Indices.begin(), Indices.end());
147+
bool ReferencesInOrder = llvm::is_sorted(Indices);
148148

149149
std::string ReferencesText;
150150
bool SymbolsInOrder = true;

clang/lib/Sema/SemaDecl.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12566,9 +12566,10 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) {
1256612566

1256712567
InitializationSequence InitSeq(*this, Entity, Kind, None);
1256812568
ExprResult Init = InitSeq.Perform(*this, Entity, Kind, None);
12569-
if (Init.isInvalid())
12570-
Var->setInvalidDecl();
12571-
else if (Init.get()) {
12569+
12570+
// If default-init fails, leave var uninitialized but valid, for recovery.
12571+
12572+
if (Init.get()) {
1257212573
Var->setInit(MaybeCreateExprWithCleanups(Init.get()));
1257312574
// This is important for template substitution.
1257412575
Var->setInitStyle(VarDecl::CallInit);

0 commit comments

Comments
 (0)