[SampleFDO] Fix uninitialized field warnings. NFCI.

Seems to have been caused by D93254 which added the SecHdrTableEntry::LayoutIndex field.
This commit is contained in:
Simon Pilgrim 2020-12-17 15:51:13 +00:00
parent 36bf2de8d8
commit 4bb10be9a6
1 changed files with 3 additions and 3 deletions

View File

@ -278,9 +278,9 @@ private:
// profile because FuncOffsetTable needs to be populated while section
// SecLBRProfile is written.
SectionHdrLayout = {
{SecProfSummary, 0, 0, 0}, {SecNameTable, 0, 0, 0},
{SecFuncOffsetTable, 0, 0, 0}, {SecLBRProfile, 0, 0, 0},
{SecProfileSymbolList, 0, 0, 0}, {SecFuncMetadata, 0, 0, 0}};
{SecProfSummary, 0, 0, 0, 0}, {SecNameTable, 0, 0, 0, 0},
{SecFuncOffsetTable, 0, 0, 0, 0}, {SecLBRProfile, 0, 0, 0, 0},
{SecProfileSymbolList, 0, 0, 0, 0}, {SecFuncMetadata, 0, 0, 0, 0}};
};
virtual std::error_code
writeSections(const StringMap<FunctionSamples> &ProfileMap) override;