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:
Justin Bogner 2014-09-09 09:15:52 +00:00
parent 3008bee7d9
commit ff6eb4fec5

View File

@ -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) {