Unverified Commit c803c290 authored by Mingming Liu's avatar Mingming Liu Committed by GitHub
Browse files

[nfc][InstrProf]Remove 'offsetOf' when parsing indexed profiles (#93346)



- In `Header::readFromBuffer`, read the buffer in the forward direction by using `readNext`.
- When compute the header size, spell out the constant.

With the changes above, we can remove `offsetOf` in InstrProf.cpp

---------

Co-authored-by: default avatarKazu Hirata <kazu@google.com>
parent 973821cb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment