[PATCH] D112297: [LTO] Fix assertion failed when flushing bitcode incrementally for LTO output.

stephan.yichao.zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 27 21:44:07 PDT 2021


stephan.yichao.zhao added a comment.

In D112297#3092429 <https://reviews.llvm.org/D112297#3092429>, @MaskRay wrote:

> Agreed. Does this change address this patch's issue (`ld.lld --plugin-opt=emit-llvm -mllvm -bitcode-flush-threshold=0 -o /dev/null %t.o`)?
>
> Can you post a patch? (Patching lld/ELF/LTO.cpp gives me a feeling working around a pitfall which might well hit others, so fixing the source would be nice.)

It needs some test to confirm. I probably do not have time to try this until this weekend.
@Enna1: If you have time, can you please verify if the suggested change works with your local test cases, and update this change if it works?


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

https://reviews.llvm.org/D112297



More information about the llvm-commits mailing list