summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/unittests/ProfileData/CoverageMappingTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
index 9cd186ac4bc..1d621f4060c 100644
--- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp
+++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
@@ -240,8 +240,9 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::pair<bool, bool>> {
make_unique<CoverageMappingReaderMock>(Funcs));
}
} else {
+ ArrayRef<OutputFunctionCoverageData> Funcs(OutputFunctions);
CoverageReaders.push_back(
- make_unique<CoverageMappingReaderMock>(OutputFunctions));
+ make_unique<CoverageMappingReaderMock>(Funcs));
}
return CoverageMapping::load(CoverageReaders, *ProfileReader);
}
OpenPOWER on IntegriCloud