[llvm-commits] [PATCH] Disable an ASan-unsafe optimization with address_safety attribute

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Feb 29 04:15:43 PST 2012


Hi,

please review this fix for bug 12047.

One of InstCombine optimizations can replace an allocation of type T
with an allocation of type S, where S has a smaller storage size, but
the same allocation size. This is ok for regular builds, but
incompatible with address safety analysis tools like AddressSanitizer.

This patch disables this optimization in functions with address_safety
attribute.



More information about the llvm-commits mailing list