This is an archive of the discontinued LLVM Phabricator instance.

Fix SimplifyAllocConst pattern when we have alloc of negative sizes
ClosedPublic

Authored by mehdi_amini on Feb 28 2023, 9:10 AM.

Details

Summary

This is UB, but we shouldn't crash the compiler either.

Fixes #61056

Diff Detail

Event Timeline

mehdi_amini created this revision.Feb 28 2023, 9:10 AM
mehdi_amini requested review of this revision.Feb 28 2023, 9:10 AM
jpienaar accepted this revision.Feb 28 2023, 11:29 AM
This revision is now accepted and ready to land.Feb 28 2023, 11:29 AM
This revision was landed with ongoing or failed builds.Feb 28 2023, 12:02 PM
This revision was automatically updated to reflect the committed changes.