This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow][NFC] Eliminate variable only used in assertion.
AbandonedPublic

Authored by mboehme on Jul 25 2023, 4:57 AM.

Details

Reviewers
NoQ
sammccall
Summary

This can break release builds that set -Werror because they will error out on
an unused variable.

Depends On D156229

Diff Detail

Event Timeline

mboehme created this revision.Jul 25 2023, 4:57 AM
Herald added a project: Restricted Project. · View Herald Transcript
mboehme requested review of this revision.Jul 25 2023, 4:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2023, 4:57 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sammccall accepted this revision.Jul 25 2023, 5:00 AM

(if you prefer to keep the named variable, (void)StructVal2 is also fine)

This revision is now accepted and ready to land.Jul 25 2023, 5:00 AM
mboehme abandoned this revision.Jul 25 2023, 5:52 AM