[llvm] [GlobalOpt] fix crash on self-referential global (PR #219777)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 30 22:39:07 PDT 2026
https://github.com/efriedma-quic commented:
This change doesn't look right. As far as I can tell, all callers of OptimizeAwayTrappingUsesOfValue pass in an Instruction as the first argument, so it shouldn't be possible for the cast to fail.
Maybe there's a use after free? You can try building LLVM with asan (-DLLVM_USE_SANITIZER=Address).
https://github.com/llvm/llvm-project/pull/219777
More information about the llvm-commits
mailing list