[PATCH] D51409: [LLD][ELF] - Do not forget to clean synthetic sections pointers before link().
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 22:03:49 PDT 2018
pcc added inline comments.
================
Comment at: ELF/Writer.cpp:263
memset(&Out::First, 0, sizeof(Out));
+ memset(&InX::First, 0, sizeof(InX));
+ memset(&In<ELFT>::First, 0, sizeof(In<ELFT>));
----------------
Won't `sizeof(InX)` evaluate to 1 here because all of the members are static?
https://reviews.llvm.org/D51409
More information about the llvm-commits
mailing list