This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Emit noundef metadata next to range metadata
ClosedPublic

Authored by nikic on Jan 11 2023, 6:36 AM.

Details

Summary

To preserve the previous semantics after D141386, adjust places that currently emit !range metadata to also emit !noundef metadata. This retains range violation as immediate undefined behavior, rather than just poison.

Depends on D141386.

Diff Detail

Event Timeline

nikic created this revision.Jan 11 2023, 6:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2023, 6:36 AM
nikic requested review of this revision.Jan 11 2023, 6:36 AM
nlopes accepted this revision.Jan 11 2023, 8:42 AM

LGTM

This revision is now accepted and ready to land.Jan 11 2023, 8:42 AM
This revision was landed with ongoing or failed builds.Jan 12 2023, 1:09 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 1:09 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript