mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
llvm-cov: Use ArrayRef::slice (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3008bee7d9
commit
ff6eb4fec5
@ -206,8 +206,7 @@ gatherLineSubViews(size_t &CurrentIdx,
|
||||
while (CurrentIdx < E &&
|
||||
Items[CurrentIdx]->getSubViewsExpansionLine() == LineNo)
|
||||
++CurrentIdx;
|
||||
return ArrayRef<std::unique_ptr<SourceCoverageView>>(Items.data() + PrevIdx,
|
||||
CurrentIdx - PrevIdx);
|
||||
return Items.slice(PrevIdx, CurrentIdx);
|
||||
}
|
||||
|
||||
void SourceCoverageView::render(raw_ostream &OS, unsigned Offset) {
|
||||
|
Loading…
Reference in New Issue
Block a user