diff options
| author | Alex Langford <apl@fb.com> | 2019-08-13 22:16:18 +0000 |
|---|---|---|
| committer | Alex Langford <apl@fb.com> | 2019-08-13 22:16:18 +0000 |
| commit | b809187a6b4229569f61d9dc3c59fd4ec0775448 (patch) | |
| tree | a84dc257b5a62d12631c4a56c05b904e8f452159 /llvm/tools/llvm-readobj/ELFDumper.cpp | |
| parent | f41ce85909fbefc88d9d57433486358be23f6f76 (diff) | |
| download | bcm5719-llvm-b809187a6b4229569f61d9dc3c59fd4ec0775448.tar.gz bcm5719-llvm-b809187a6b4229569f61d9dc3c59fd4ec0775448.zip | |
[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
Diffstat (limited to 'llvm/tools/llvm-readobj/ELFDumper.cpp')
| -rw-r--r-- | llvm/tools/llvm-readobj/ELFDumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp index e5b65034bb5..67ee182539d 100644 --- a/llvm/tools/llvm-readobj/ELFDumper.cpp +++ b/llvm/tools/llvm-readobj/ELFDumper.cpp @@ -4713,7 +4713,7 @@ void DumpStyle<ELFT>::printRelocatableStackSizes( // 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; |

