diff --git a/llvm/include/llvm/ProfileData/DataAccessProf.h b/llvm/include/llvm/ProfileData/DataAccessProf.h index f410096d83f5e..07230f23f3385 100644 --- a/llvm/include/llvm/ProfileData/DataAccessProf.h +++ b/llvm/include/llvm/ProfileData/DataAccessProf.h @@ -116,9 +116,9 @@ struct DataAccessProfRecord { Locations.emplace_back(Loc.FileName, Loc.Line); } // Empty constructor is used in yaml conversion. - DataAccessProfRecord() : AccessCount(0) {} + DataAccessProfRecord() = default; SymbolHandle SymHandle; - uint64_t AccessCount; + uint64_t AccessCount = 0; // The locations of data in the source code. Optional. SmallVector Locations; };