diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index d788a6140e0d..81e9cb132335 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -72,12 +72,12 @@ struct CoverageMappingReaderMock : CoverageMappingReader { std::error_code readNextRecord(CoverageMappingRecord &Record) override { if (Functions.empty()) - return instrprof_error::eof; + return coveragemap_error::eof; Functions.front().fillCoverageMappingRecord(Record); Functions = Functions.slice(1); - return instrprof_error::success; + return coveragemap_error::success; } };