This is an archive of the discontinued LLVM Phabricator instance.

SeparateConstOffsetFromGEP: Fix stack overflow in unreachable code
ClosedPublic

Authored by arsenm on Sep 13 2021, 7:44 PM.

Details

Summary

ConstantOffsetExtractor::Find was infinitely recursing on the add
referencing itself.

Diff Detail

Event Timeline

arsenm created this revision.Sep 13 2021, 7:44 PM
arsenm requested review of this revision.Sep 13 2021, 7:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2021, 7:44 PM
Herald added a subscriber: wdng. · View Herald Transcript
lebedev.ri accepted this revision.Sep 14 2021, 1:16 AM
lebedev.ri added a reviewer: spatel.

LG. This is a rather idiomatic fix.

This revision is now accepted and ready to land.Sep 14 2021, 1:16 AM
tra accepted this revision.Sep 14 2021, 9:05 AM