[llvm-branch-commits] [llvm] [llvm][EmbedBitcodePass] Prevent modifying the module with ThinLTO (PR #139999)

Paul Kirth via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 20 13:35:19 PDT 2025


ilovepi wrote:

@nikic I spent some time over the weekend looking at this, I think if we want to avoid cloning the module, we'd need to record enough metadata to recover the old state. For the Vtable I think that's not too much data, but IDK about the rest. That said, that whole approach seems awfully invasive to the pass and is likely to be both buggy and brittle.  I just don't see a good way for us to roll back those changes to the VTable otherwise...

Should we just land this for now, and try to come up with something better/different as a follow up?

https://github.com/llvm/llvm-project/pull/139999


More information about the llvm-branch-commits mailing list