[llvm] r297635 - Use the new member accessors of llvm::enumerate.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 09:32:09 PDT 2017
Author: zturner
Date: Mon Mar 13 11:32:08 2017
New Revision: 297635
URL: http://llvm.org/viewvc/llvm-project?rev=297635&view=rev
Log:
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.
Modified:
llvm/trunk/tools/llvm-cov/CoverageReport.cpp
Modified: llvm/trunk/tools/llvm-cov/CoverageReport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/CoverageReport.cpp?rev=297635&r1=297634&r2=297635&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/CoverageReport.cpp (original)
+++ llvm/trunk/tools/llvm-cov/CoverageReport.cpp Mon Mar 13 11:32:08 2017
@@ -132,13 +132,13 @@ unsigned getNumRedundantPathComponents(A
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;
}
}
More information about the llvm-commits
mailing list