This is an archive of the discontinued LLVM Phabricator instance.

[trace] Fix errors when handling command arguments
ClosedPublic

Authored by wallace on Jun 28 2022, 5:40 PM.

Details

Summary

https://reviews.llvm.org/D128453 recently added some safety checks for
command arguments. Unfortunately, some few commands started failing due
to that, and this diff fixes it. But fortunately, the fix is trivial, which is
simply declaring the argument that these commands will receive.

Diff Detail

Event Timeline

wallace created this revision.Jun 28 2022, 5:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 5:40 PM
wallace requested review of this revision.Jun 28 2022, 5:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2022, 5:40 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 28 2022, 5:54 PM
This revision was automatically updated to reflect the committed changes.

lgtm. Thanks for fixing this!

Thanks for doing this. The test suite was clean after my original changes, which means whatever is using CommandObjectMultipleThreads must not have had any tests where arguments were passed to it? Ditto for the trace command. Might be good to add those as well.

what happens is that the specific failures are triggered by tests that require the cmake flag LIBIPT_INCLUDE_PATH to be configured, but all good