forked from OSchip/llvm-project
[llvm-nm] Use aggregate initialization instead of memset zero
This commit is contained in:
parent
f9e6d1edc0
commit
50f4c7c785
|
@ -1635,8 +1635,7 @@ static void dumpSymbolNamesFromObject(SymbolicFile &Obj, bool printName,
|
|||
}
|
||||
if (!found) {
|
||||
LastSymbolName = Entry.symbolName();
|
||||
NMSymbol W;
|
||||
memset(&W, '\0', sizeof(NMSymbol));
|
||||
NMSymbol W = {};
|
||||
W.Name = Entry.symbolName();
|
||||
W.Address = 0;
|
||||
W.Size = 0;
|
||||
|
|
Loading…
Reference in New Issue