forked from OSchip/llvm-project
[llvm-objcopy] [COFF] Fix warnings abuilt missing field initialization. NFC.
llvm-svn: 350898
This commit is contained in:
parent
ffcd37c5fd
commit
4c1c4fc869
|
@ -25,6 +25,9 @@ namespace objcopy {
|
|||
namespace coff {
|
||||
|
||||
struct Relocation {
|
||||
Relocation() {}
|
||||
Relocation(const object::coff_relocation& R) : Reloc(R) {}
|
||||
|
||||
object::coff_relocation Reloc;
|
||||
size_t Target;
|
||||
StringRef TargetName; // Used for diagnostics only
|
||||
|
|
|
@ -73,7 +73,7 @@ Error COFFReader::readSections(Object &Obj) const {
|
|||
return errorCodeToError(EC);
|
||||
ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec);
|
||||
for (const coff_relocation &R : Relocs)
|
||||
S.Relocs.push_back(Relocation{R});
|
||||
S.Relocs.push_back(R);
|
||||
if (auto EC = COFFObj.getSectionName(Sec, S.Name))
|
||||
return errorCodeToError(EC);
|
||||
if (Sec->hasExtendedRelocations())
|
||||
|
|
Loading…
Reference in New Issue