[PATCH] D110277: [compiler-rt][profile] Do not emit binary IDs for corrupted-profile.c test

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 22 13:28:11 PDT 2021


phosek added a comment.

This test seems quite fragile, I'd prefer modifying it instead to compute the offset. It shouldn't be that difficult. You should be able to `#include "profile/InstrProfData.inc"` and then cast `Buf` to `__llvm_profile_header` and use it to compute the counter offset similarly to what's being done in https://github.com/llvm/llvm-project/blob/6e60bb6883178cf14e6fd47a6789495636e4322f/compiler-rt/lib/profile/InstrProfilingMerge.c#L95.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110277/new/

https://reviews.llvm.org/D110277



More information about the llvm-commits mailing list