[llvm] r227898 - InstrProf: Simplify some logic by using ArrayRef::slice (NFC)
Justin Bogner
mail at justinbogner.com
Mon Feb 2 16:00:00 PST 2015
Author: bogner
Date: Mon Feb 2 18:00:00 2015
New Revision: 227898
URL: http://llvm.org/viewvc/llvm-project?rev=227898&view=rev
Log:
InstrProf: Simplify some logic by using ArrayRef::slice (NFC)
Modified:
llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp
Modified: llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp?rev=227898&r1=227897&r2=227898&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp (original)
+++ llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp Mon Feb 2 18:00:00 2015
@@ -543,7 +543,7 @@ ObjectFileCoverageMappingReader::readNex
auto &R = MappingRecords[CurrentRecord];
RawCoverageMappingReader Reader(
R.FunctionName, R.CoverageMapping,
- makeArrayRef(Filenames.data() + R.FilenamesBegin, R.FilenamesSize),
+ makeArrayRef(Filenames).slice(R.FilenamesBegin, R.FilenamesSize),
FunctionsFilenames, Expressions, MappingRegions);
if (auto Err = Reader.read(Record))
return Err;
More information about the llvm-commits
mailing list