mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
llvm-cov: Fix a misuse of ArrayRef::slice I introduced in r217430
It appears this code was completely untested, so using ArrayRef wrong didn't break anything obvious. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -206,7 +206,7 @@ gatherLineSubViews(size_t &CurrentIdx,
|
||||
while (CurrentIdx < E &&
|
||||
Items[CurrentIdx]->getSubViewsExpansionLine() == LineNo)
|
||||
++CurrentIdx;
|
||||
return Items.slice(PrevIdx, CurrentIdx);
|
||||
return Items.slice(PrevIdx, CurrentIdx - PrevIdx);
|
||||
}
|
||||
|
||||
void SourceCoverageView::render(raw_ostream &OS, unsigned Offset) {
|
||||
|
Reference in New Issue
Block a user