[PATCH] D94872: [NFC][AIX][XCOFF] Fix compile warning on strncpy
Yang Fan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 18 15:33:13 PST 2021
nullptr.cpp added inline comments.
================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:143
CsectGroups Groups)
- : Address(0), Size(0), FileOffsetToData(0), FileOffsetToRelocations(0),
- RelocationCount(0), Flags(Flags), Index(UninitializedIndex),
- IsVirtual(IsVirtual), Groups(Groups) {
- strncpy(Name, N, XCOFF::NameSize);
+ : Name(), Address(0), Size(0), FileOffsetToData(0),
+ FileOffsetToRelocations(0), RelocationCount(0), Flags(Flags),
----------------
@daltenty
Name() here have already zero-initialized the array.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94872/new/
https://reviews.llvm.org/D94872
More information about the llvm-commits
mailing list