Skip to content

Commit

Permalink
[unittest] Pass a reference instead of making a copy (NFC)
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284065 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vedantk committed Oct 12, 2016
1 parent d05e76c commit 3d62534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/ProfileData/CoverageMappingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<StringRef, 8> Filenames(Files.size());
for (const auto &E : Files)
Expand Down

0 comments on commit 3d62534

Please sign in to comment.