Skip to content

Commit 5dcc4aa

Browse files
Merge remote-tracking branch 'upstream/main' into gh-101657
2 parents 182a373 + c02e6ca commit 5dcc4aa

File tree

156 files changed

+20053
-20066
lines changed

Some content is hidden

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

156 files changed

+20053
-20066
lines changed

bolt/lib/Core/DIEBuilder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,10 @@ getUnitForOffset(DIEBuilder &Builder, DWARFContext &DWCtx,
437437
// This is a work around for XCode clang. There is a build error when we
438438
// pass DWCtx.compile_units() to llvm::upper_bound
439439
std::call_once(InitVectorFlag, initCUVector);
440-
auto CUIter = std::upper_bound(CUOffsets.begin(), CUOffsets.end(), Offset,
441-
[](uint64_t LHS, const DWARFUnit *RHS) {
442-
return LHS < RHS->getNextUnitOffset();
443-
});
440+
auto CUIter = llvm::upper_bound(CUOffsets, Offset,
441+
[](uint64_t LHS, const DWARFUnit *RHS) {
442+
return LHS < RHS->getNextUnitOffset();
443+
});
444444
CU = CUIter != CUOffsets.end() ? (*CUIter) : nullptr;
445445
}
446446
return CU;

clang-tools-extra/clangd/index/FileIndex.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ SlabTuple indexSymbols(ASTContext &AST, Preprocessor &PP,
7979

8080
SymbolCollector Collector(std::move(CollectorOpts));
8181
Collector.setPreprocessor(PP);
82-
index::indexTopLevelDecls(AST, PP, DeclsToIndex, Collector, IndexOpts);
82+
index::indexTopLevelDecls(AST, PP, DeclsToIndex, Collector,
83+
std::move(IndexOpts));
8384
if (MacroRefsToIndex)
8485
Collector.handleMacros(*MacroRefsToIndex);
8586

0 commit comments

Comments
 (0)