jhuber6 added a comment. Thanks for the comments, I'll address them real quick.
================ Comment at: llvm/include/llvm/Object/OffloadBinary.h:121 const Entry *TheEntry) - : Buffer(Buffer), TheHeader(TheHeader), TheEntry(TheEntry) { - + : Binary(Binary::ID_Offload, Source), Buffer(Source.getBufferStart()), + TheHeader(TheHeader), TheEntry(TheEntry) { ---------------- tra wrote: > We're losing information by passing only the start of the buffer. > I'd change the type of `Buffer` field to `MemoryBufferRef` instead. Forgot to remove this one. I just put this here for convenience's sake since I need to index the `MemoryBufferRef` directly as a char array. The underlying `Binary` type already contains the buffer ref so we're not losing it. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126812/new/ https://reviews.llvm.org/D126812 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits