[llvm-branch-commits] [llvm] 3729ee8 - Fix Wmissing-field-initializers warnings.
Wei Mi via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jan 19 15:31:56 PST 2021
Author: Wei Mi
Date: 2021-01-19T15:26:52-08:00
New Revision: 3729ee893948be7e3ba138b2a04c4cdfa6257cdf
URL: https://github.com/llvm/llvm-project/commit/3729ee893948be7e3ba138b2a04c4cdfa6257cdf
DIFF: https://github.com/llvm/llvm-project/commit/3729ee893948be7e3ba138b2a04c4cdfa6257cdf.diff
LOG: Fix Wmissing-field-initializers warnings.
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 e72963ad5c74..419ebd6eb7ae 100644
--- a/llvm/include/llvm/ProfileData/SampleProfWriter.h
+++ b/llvm/include/llvm/ProfileData/SampleProfWriter.h
@@ -164,25 +164,25 @@ const std::array<SmallVector<SecHdrTableEntry, 8>, NumOfLayout>
// reader need to get the offset of each function profile first.
//
// DefaultLayout
- SmallVector<SecHdrTableEntry, 8>({{SecProfSummary},
- {SecNameTable},
- {SecFuncOffsetTable},
- {SecLBRProfile},
- {SecProfileSymbolList},
- {SecFuncMetadata}}),
+ SmallVector<SecHdrTableEntry, 8>({{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}}),
// CtxSplitLayout
- SmallVector<SecHdrTableEntry, 8>({{SecProfSummary},
- {SecNameTable},
+ SmallVector<SecHdrTableEntry, 8>({{SecProfSummary, 0, 0, 0, 0},
+ {SecNameTable, 0, 0, 0, 0},
// profile with context
// for next two sections
- {SecFuncOffsetTable},
- {SecLBRProfile},
+ {SecFuncOffsetTable, 0, 0, 0, 0},
+ {SecLBRProfile, 0, 0, 0, 0},
// profile without context
// for next two sections
- {SecFuncOffsetTable},
- {SecLBRProfile},
- {SecProfileSymbolList},
- {SecFuncMetadata}}),
+ {SecFuncOffsetTable, 0, 0, 0, 0},
+ {SecLBRProfile, 0, 0, 0, 0},
+ {SecProfileSymbolList, 0, 0, 0, 0},
+ {SecFuncMetadata, 0, 0, 0, 0}}),
};
class SampleProfileWriterExtBinaryBase : public SampleProfileWriterBinary {
More information about the llvm-branch-commits
mailing list