This is an archive of the discontinued LLVM Phabricator instance.

[Remarks] Look through inttoptr/ptrtoint for -ftrivial-auto-var-init remarks.
ClosedPublic

Authored by jroelofs on May 21 2021, 10:57 AM.

Details

Summary

Reduced & modified from a crasher @aemerson found in spec2k6/403.gcc when I landed https://reviews.llvm.org/D102452

I'm not sure if this ought to be folded into getUnderlyingObjects, or FindDebugAddrUses instead.

Diff Detail

Event Timeline

jroelofs created this revision.May 21 2021, 10:57 AM
jroelofs requested review of this revision.May 21 2021, 10:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2021, 10:57 AM
jroelofs updated this revision to Diff 347088.May 21 2021, 11:39 AM
jroelofs retitled this revision from [Remarks] Fix crash when inspecting debug info for -ftrivial-auto-var-init remarks to [Remarks] Look through inttoptr/ptrtoint for -ftrivial-auto-var-init remarks..

Side-step the issue by using the other getUnderlyingOjbects api.

thegameg accepted this revision.May 21 2021, 11:09 PM

Good catch, thanks!

This revision is now accepted and ready to land.May 21 2021, 11:09 PM