Initialization (zeroing) makes makes every allocated page resident. The actual size of the compressed buffer is usually much smaller. Making every page resident is wasteful.
When linking a test binary with ~1.9GiB uncompressed debug info with LLD, this optimization decreases max RSS by ~1.5GiB.
I think you should replace this function entirely with the new one because this is LLVM-only function and you can update all callers.