forked from OSchip/llvm-project
Fix uninitialized variable warning. NFCI.
This commit is contained in:
parent
dec21e4451
commit
95a25d8883
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue