[llvm-branch-commits] [llvm] [llvm][EmbedBitcodePass] Prevent modifying the module with ThinLTO (PR #139999)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 27 12:33:33 PDT 2025
================
@@ -33,8 +34,11 @@ PreservedAnalyses EmbedBitcodePass::run(Module &M, ModuleAnalysisManager &AM) {
std::string Data;
raw_string_ostream OS(Data);
+ // Clone the module with with Thin LTO, since ThinLTOBitcodeWriterPass changes
----------------
nikic wrote:
```suggestion
// Clone the module with Thin LTO, since ThinLTOBitcodeWriterPass changes
```
https://github.com/llvm/llvm-project/pull/139999
More information about the llvm-branch-commits
mailing list