[compiler-rt] [llvm] [InstrFDO]Record the on-disk header size in indexed profile header (PR #88212)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 9 18:17:30 PDT 2024
================
@@ -1650,10 +1659,12 @@ size_t Header::size() const {
// When a new field is added to the header add a case statement here to
// compute the size as offset of the new field + size of the new field. This
// relies on the field being added to the end of the list.
- static_assert(IndexedInstrProf::ProfVersion::CurrentVersion == Version12,
+ static_assert(IndexedInstrProf::ProfVersion::CurrentVersion == Version13,
"Please update the size computation below if a new field has "
"been added to the header, if not add a case statement to "
"fall through to the latest version.");
+ case 13ull:
----------------
minglotus-6 wrote:
done in this [commit](https://github.com/llvm/llvm-project/pull/88212/commits/3ac8075b1f893e91f4a3bd5495f4494c87b752eb).
https://github.com/llvm/llvm-project/pull/88212
More information about the llvm-commits
mailing list