[PATCH] D115103: Leak Sanitizer port to Windows

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 1 12:02:56 PST 2023


aganea added a comment.

In D115103#4097460 <https://reviews.llvm.org/D115103#4097460>, @clemenswasser wrote:

> Do you have a suggestion how I could fix this on MSVC

@clemenswasser The bug is there for years, I'm surprised it hasn't been fixed yet. MSVC doesn't support different types with bitfields. You should do:

  struct ChunkMetadata {
    uint64_t allocated : 8;  // Must be first.
    uint64_t tag : 2;
    uint64_t requested_size : 54;
    uint32_t stack_trace_id;
  };


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

https://reviews.llvm.org/D115103



More information about the cfe-commits mailing list