This is an archive of the discontinued LLVM Phabricator instance.

[OpaquePtr][ValueTracking] Check GEP source element type in isPointerOffset()
ClosedPublic

Authored by aeubanks on Feb 12 2022, 5:42 PM.

Details

Summary

Fixes a MemCpyOpt miscompile with opaque pointers.
This function can be further cleaned up, but let's just fix the miscompile first.

Diff Detail

Event Timeline

aeubanks created this revision.Feb 12 2022, 5:42 PM
aeubanks requested review of this revision.Feb 12 2022, 5:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 12 2022, 5:42 PM
aeubanks added a reviewer: Restricted Project.Feb 12 2022, 5:42 PM
nikic accepted this revision.Feb 13 2022, 12:19 AM
nikic added a subscriber: nikic.

LGTM

This revision is now accepted and ready to land.Feb 13 2022, 12:19 AM