SwitchInst should have a void result type.
Add a check to the verifier to catch this error.
Paths
| Differential D108084
[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 TimelineThis revision is now accepted and ready to land.Aug 16 2021, 1:29 AM Closed by commit rG92abb1cf90ff: [TypePromotion] Don't mutate the result type of SwitchInst. (authored by craig.topper). · Explain WhyAug 16 2021, 8:54 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 366651 llvm/lib/CodeGen/TypePromotion.cpp
llvm/lib/IR/Verifier.cpp
|