Skip to content
Commit d1f4c6a6 authored by Philip Reames's avatar Philip Reames
Browse files

[Attributor] Generalize calloc handling in heap-to-stack for any init value [NFC]

Rewrite the calloc specific handling in heap-to-stack to allow arbitrary init values.  The basic problem being solved is that if an allocation is initilized to anything other than zero, this must be explicitly done for the formed alloca as well.

This covers the calloc case today, but once a couple of earlier guards are removed in this code, downstream allocators with other init values could also be handled.

Inspired by discussion on D116971
parent 8e76720c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment