[llvm-branch-commits] [llvm] 4bb10be - [SampleFDO] Fix uninitialized field warnings. NFCI.
Simon Pilgrim via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 17 07:56:27 PST 2020
Author: Simon Pilgrim
Date: 2020-12-17T15:51:26Z
New Revision: 4bb10be9a6e06a6c51cc1695ff5dc9d68c953334
URL: https://github.com/llvm/llvm-project/commit/4bb10be9a6e06a6c51cc1695ff5dc9d68c953334
DIFF: https://github.com/llvm/llvm-project/commit/4bb10be9a6e06a6c51cc1695ff5dc9d68c953334.diff
LOG: [SampleFDO] Fix uninitialized field warnings. NFCI.
Seems to have been caused by D93254 which added the SecHdrTableEntry::LayoutIndex field.
Added:
Modified:
llvm/include/llvm/ProfileData/SampleProfWriter.h
Removed:
################################################################################
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 @@ class SampleProfileWriterExtBinary : public SampleProfileWriterExtBinaryBase {
// 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;
More information about the llvm-branch-commits
mailing list