llvm-cov: Use ArrayRef::slice (NFC)

llvm-svn: 217430
This commit is contained in:
Justin Bogner 2014-09-09 09:15:52 +00:00
parent 9ad8394e3b
commit 37aeb2d7c2
1 changed files with 1 additions and 2 deletions

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