Skip to content

Commit b809187

Browse files
committed
[NFCI] Explicitly provide user-defined constructor for SectionRef
I am changing this to work around an issue that is being hit when building with clang 3.8. Specifically, clang 3.8 requires that we have a user defined default constructor for SectionRef for the default initialization of a const SectionRef. llvm-svn: 368758
1 parent f41ce85 commit b809187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-readobj/ELFDumper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4713,7 +4713,7 @@ void DumpStyle<ELFT>::printRelocatableStackSizes(
47134713
// Build a map between stack size sections and their corresponding relocation
47144714
// sections.
47154715
llvm::MapVector<SectionRef, SectionRef> StackSizeRelocMap;
4716-
const SectionRef NullSection;
4716+
const SectionRef NullSection{};
47174717

47184718
for (const SectionRef &Sec : Obj->sections()) {
47194719
StringRef SectionName;

0 commit comments

Comments
 (0)