From 11f57c90683a529ee6f8a465442edc68df22853c Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Tue, 3 Feb 2015 00:00:00 +0000 Subject: [PATCH] InstrProf: Simplify some logic by using ArrayRef::slice (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227898 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ProfileData/CoverageMappingReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProfileData/CoverageMappingReader.cpp b/lib/ProfileData/CoverageMappingReader.cpp index 6476d28ec35..1ab2acb2f93 100644 --- a/lib/ProfileData/CoverageMappingReader.cpp +++ b/lib/ProfileData/CoverageMappingReader.cpp @@ -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;