julia
30542e06 - Fix tbaa annotation on union selector bytes inside of structs (#54604)

Commit
1 year ago
Fix tbaa annotation on union selector bytes inside of structs (#54604) We currently cause a alias analysis contradiction by saying that the unionselbytes are on the stack, even if they are on a struct. LLVM is then able to figure out that we giving it a impossible alias situation (the object doesn't alias itself) and triggers UB. https://godbolt.org/z/ssEKMzsPf We may want to do a benchmarks run on this to see if anything too critical hasn't regressed. Fixes https://github.com/JuliaLang/julia/issues/54599 --------- Co-authored-by: Cody Tapscott <84105208+topolarity@users.noreply.github.com>
Author
Parents
Loading