This is an archive of the discontinued LLVM Phabricator instance.

While adding instructions to be redone, make sure they are from the same basic block
ClosedPublic

Authored by aditya_nandakumar on Jan 7 2016, 2:41 PM.

Details

Reviewers
mcrosier
Summary

While adding instructions (possible roots) to be redone, make sure they are from the same basic block.

Attached test case where it will crash without this patch.

Diff Detail

Repository
rL LLVM

Event Timeline

aditya_nandakumar retitled this revision from to While adding instructions to be redone, make sure they are from the same basic block.
aditya_nandakumar updated this object.
aditya_nandakumar added a reviewer: mcrosier.
aditya_nandakumar set the repository for this revision to rL LLVM.
mcrosier accepted this revision.Jan 7 2016, 3:21 PM
mcrosier edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jan 7 2016, 3:21 PM

One more thing: Make sure to add llvm-commits to the subscribers list going forward.

mcrosier edited edge metadata.Jan 7 2016, 3:25 PM
mcrosier added a subscriber: llvm-commits.

Ok. Will do. Thanks. Submitting.