1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[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
This commit is contained in:
Alex Langford 2019-08-13 22:16:18 +00:00
parent 582c860a72
commit 88fae211c4

View File

@ -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;