[llvm] r368758 - [NFCI] Explicitly provide user-defined constructor for SectionRef
Alex Langford via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 15:16:19 PDT 2019
Author: xiaobai
Date: Tue Aug 13 15:16:18 2019
New Revision: 368758
URL: http://llvm.org/viewvc/llvm-project?rev=368758&view=rev
Log:
[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.
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=368758&r1=368757&r2=368758&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Tue Aug 13 15:16:18 2019
@@ -4713,7 +4713,7 @@ void DumpStyle<ELFT>::printRelocatableSt
// Build a map between stack size sections and their corresponding relocation
// sections.
llvm::MapVector<SectionRef, SectionRef> StackSizeRelocMap;
- const SectionRef NullSection;
+ const SectionRef NullSection{};
for (const SectionRef &Sec : Obj->sections()) {
StringRef SectionName;
More information about the llvm-commits
mailing list