This is an archive of the discontinued LLVM Phabricator instance.

[TypePromotion] Don't mutate the result type of SwitchInst.
ClosedPublic

Authored by craig.topper on Aug 15 2021, 12:30 AM.

Details

Summary

SwitchInst should have a void result type.

Add a check to the verifier to catch this error.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 15 2021, 12:30 AM
craig.topper requested review of this revision.Aug 15 2021, 12:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2021, 12:30 AM
samparker accepted this revision.Aug 16 2021, 1:29 AM

Thanks.

This revision is now accepted and ready to land.Aug 16 2021, 1:29 AM