This is an archive of the discontinued LLVM Phabricator instance.

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
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.

Diff Detail

Event Timeline

angelomatnigoogle requested review of this revision.Oct 13 2022, 12:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2022, 12:08 PM

Clean up commit message body

angelomatnigoogle edited the summary of this revision. (Show Details)Oct 13 2022, 12:13 PM
saugustine accepted this revision.Oct 13 2022, 2:02 PM

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
MaskRay accepted this revision.Oct 13 2022, 2:35 PM
This revision was landed with ongoing or failed builds.Oct 14 2022, 10:28 AM
This revision was automatically updated to reflect the committed changes.