diff --git a/unittests/ProfileData/CoverageMappingTest.cpp b/unittests/ProfileData/CoverageMappingTest.cpp index 47809b14faa2..b12935fbd02b 100644 --- a/unittests/ProfileData/CoverageMappingTest.cpp +++ b/unittests/ProfileData/CoverageMappingTest.cpp @@ -164,7 +164,7 @@ struct CoverageMappingTest : ::testing::Test { return OS.str(); } - void readCoverageRegions(std::string Coverage, + void readCoverageRegions(const std::string &Coverage, OutputFunctionCoverageData &Data) { SmallVector Filenames(Files.size()); for (const auto &E : Files)