Skip to content

Commit d97c304

Browse files
committed
Fix compilation failure
1 parent fe73cf9 commit d97c304

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/unittests/ProfileData/CoverageMappingTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::tuple<bool, bool>> {
278278
std::make_unique<CoverageMappingReaderMock>(Funcs));
279279
}
280280
auto ProfileReaderRef =
281-
std::make_optional(std::reference_wrapper(*ProfileReader));
281+
std::make_optional(
282+
std::reference_wrapper<IndexedInstrProfReader>(*ProfileReader));
282283
return CoverageMapping::load(CoverageReaders, ProfileReaderRef);
283284
}
284285

0 commit comments

Comments
 (0)