Fix uninitialized variable warning. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-05 15:14:22 +00:00
parent dec21e4451
commit 95a25d8883
1 changed files with 1 additions and 1 deletions

View File

@ -885,7 +885,7 @@ uint32_t InstrProfRecord::getNumValueDataForSite(uint32_t ValueKind,
std::unique_ptr<InstrProfValueData[]>
InstrProfRecord::getValueForSite(uint32_t ValueKind, uint32_t Site,
uint64_t *TotalC) const {
uint64_t Dummy;
uint64_t Dummy = 0;
uint64_t &TotalCount = (TotalC == nullptr ? Dummy : *TotalC);
uint32_t N = getNumValueDataForSite(ValueKind, Site);
if (N == 0) {