Cleanup: avoid referring to std::vector<T> members when T is incomplete.
This is not legal
according to the C++ standard, and causes build errors in particular in C++20
mode. Fix it by defining the vector's type before using the vector.
Paths
| Differential D135906
Fix llvm/lib/ObjCopy, llvm/llvm-ifs: c++20 compatibility ClosedPublic Authored by angelomatnigoogle on Oct 13 2022, 12:08 PM.
Details Summary Cleanup: avoid referring to std::vector<T> members when T is incomplete. This is not legal
Diff Detail
Event TimelineComment Actions This is a straight forward change and I don't believe the libfuzzer failures are related. Accepting. This revision is now accepted and ready to land.Oct 13 2022, 2:02 PM This revision was landed with ongoing or failed builds.Oct 14 2022, 10:28 AM Closed by commit rGccde601f140c: Fix llvm/lib/ObjCopy, llvm/llvm-ifs: c++20 compatibility (authored by angelomatnigoogle, committed by MaskRay). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 467562 llvm/lib/ObjCopy/MachO/MachOObject.h
llvm/lib/ObjCopy/MachO/MachOObject.cpp
llvm/tools/llvm-ifs/ErrorCollector.h
|