[memprof] Initialize MemInfoBlock data.
authorSnehasish Kumar <snehasishk@google.com>
Tue, 22 Mar 2022 20:56:30 +0000 (13:56 -0700)
committerSnehasish Kumar <snehasishk@google.com>
Tue, 22 Mar 2022 21:35:57 +0000 (14:35 -0700)
commit61c75eb6372786e5bc4025bd9023376fded76bf2
treebfd1964b756794e050ebb35ebed3c22fc1f3df72
parent9933015fdd761adc1883ce87708a6aaf988031a0
[memprof] Initialize MemInfoBlock data.

This patch updates the existing default no-arg constructor for
MemInfoBlock to explicitly initialize all members. Also add missing
DataTypeId initialization to the other constructor. These issues were
exposed by msan on patch D121179. With this patch D121179 builds cleanly
on msan.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D122260
compiler-rt/include/profile/MemProfData.inc
llvm/include/llvm/ProfileData/MemProfData.inc