This is an archive of the discontinued LLVM Phabricator instance.

[LSR]: Fix cast to BranchInst.
AbandonedPublic

Authored by MarkGoncharovAl on Mar 20 2023, 4:31 AM.

Details

Reviewers
eopXD
nikic
reames
Summary

getTerminator() returns Instruction*.
So, some tests (spec2006.483.xalancbmk) fail with SegFault, because we should cast more carefully.

Also, TODO is already implemented.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2023, 4:31 AM
MarkGoncharovAl requested review of this revision.Mar 20 2023, 4:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2023, 4:31 AM
nikic requested changes to this revision.Mar 20 2023, 4:33 AM

Change looks fine, but is missing a test case.

This revision now requires changes to proceed.Mar 20 2023, 4:33 AM

I landed a fix for this in 00fdd2cb6c55744ae21f18c377854e9359273454. This patch can be abandoned.

This patch has been landed

MarkGoncharovAl abandoned this revision.Mar 21 2023, 10:07 PM