projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3008bee
)
llvm-cov: Use ArrayRef::slice (NFC)
author
Justin Bogner
<mail@justinbogner.com>
Tue, 9 Sep 2014 09:15:52 +0000
(09:15 +0000)
committer
Justin Bogner
<mail@justinbogner.com>
Tue, 9 Sep 2014 09:15:52 +0000
(09:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217430
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-cov/SourceCoverageView.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-cov/SourceCoverageView.cpp
b/tools/llvm-cov/SourceCoverageView.cpp
index 94e963aa6e854b43799ed2d62c75f80c87797090..5f873acba0d696eb122167cc14534b7e36a85e96 100644
(file)
--- a/
tools/llvm-cov/SourceCoverageView.cpp
+++ b/
tools/llvm-cov/SourceCoverageView.cpp
@@
-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) {