InstrProf: Simplify some logic by using ArrayRef::slice (NFC)

llvm-svn: 227898
This commit is contained in:
Justin Bogner 2015-02-03 00:00:00 +00:00
parent bacd479a5d
commit 346359daac
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ ObjectFileCoverageMappingReader::readNextRecord(CoverageMappingRecord &Record) {
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;