From 4bb10be9a6e06a6c51cc1695ff5dc9d68c953334 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 17 Dec 2020 15:51:13 +0000 Subject: [PATCH] [SampleFDO] Fix uninitialized field warnings. NFCI. Seems to have been caused by D93254 which added the SecHdrTableEntry::LayoutIndex field. --- llvm/include/llvm/ProfileData/SampleProfWriter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/ProfileData/SampleProfWriter.h b/llvm/include/llvm/ProfileData/SampleProfWriter.h index 5bb1446acb0b..fc568f06ffc8 100644 --- a/llvm/include/llvm/ProfileData/SampleProfWriter.h +++ b/llvm/include/llvm/ProfileData/SampleProfWriter.h @@ -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 &ProfileMap) override;