diff options
author | Zachary Turner <zturner@google.com> | 2017-03-13 16:32:08 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-13 16:32:08 +0000 |
commit | 368c3fa657d5847ce3604c78e01e28aa67e3a333 (patch) | |
tree | 476d834b288bffcb06456d66bb2cf739a400e46b /llvm/tools/llvm-cov/CoverageReport.cpp | |
parent | 309a0889a48c3fab512099836539eb20c53ba222 (diff) | |
download | llvm-368c3fa657d5847ce3604c78e01e28aa67e3a333.zip llvm-368c3fa657d5847ce3604c78e01e28aa67e3a333.tar.gz llvm-368c3fa657d5847ce3604c78e01e28aa67e3a333.tar.bz2 |
Use the new member accessors of llvm::enumerate.
The value_type is no longer a struct, it's a class whose
members you have to access via a method.
llvm-svn: 297635
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageReport.cpp')
-rw-r--r-- | llvm/tools/llvm-cov/CoverageReport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cov/CoverageReport.cpp b/llvm/tools/llvm-cov/CoverageReport.cpp index 6ae64ba..c68bb90 100644 --- a/llvm/tools/llvm-cov/CoverageReport.cpp +++ b/llvm/tools/llvm-cov/CoverageReport.cpp @@ -132,13 +132,13 @@ unsigned getNumRedundantPathComponents(ArrayRef<std::string> Paths) { enumerate(make_range(sys::path::begin(Path), sys::path::end(Path)))) { // Do not increase the number of redundant components: that would remove // useful parts of already-visited paths. - if (Component.Index >= NumRedundant) + if (Component.index() >= NumRedundant) break; // Lower the number of redundant components when there's a mismatch // between the first path, and the path under consideration. - if (FirstPathComponents[Component.Index] != Component.Value) { - NumRedundant = Component.Index; + if (FirstPathComponents[Component.index()] != Component.value()) { + NumRedundant = Component.index(); break; } } |