diff options
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index c0e99cf..46f881e 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -277,9 +277,7 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::tuple<bool, bool>> { CoverageReaders.push_back( std::make_unique<CoverageMappingReaderMock>(Funcs)); } - auto ProfileReaderRef = - std::make_optional(std::reference_wrapper(*ProfileReader)); - return CoverageMapping::load(CoverageReaders, ProfileReaderRef); + return CoverageMapping::load(CoverageReaders, *ProfileReader); } Error loadCoverageMapping(bool EmitFilenames = true) { |