-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Call terminator to SMIR #110558
Add Call terminator to SMIR #110558
Conversation
cleanup: match unwind { | ||
UnwindAction::Cleanup(bb) => Some(bb.as_usize()), | ||
_ => None, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably copy the UnwindAction
enum to smir instead of losing the information about which behaviour is desired here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, made the change but only applied to Call
. We would need to apply to Assert
, etc but we can do that as we go I guess.
1f14eda
to
2f50334
Compare
@bors r+ rollup |
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#108795 (Add support for the x86_64h-apple-darwin target) - rust-lang#110558 (Add Call terminator to SMIR) - rust-lang#110565 (linkchecker: running from a directory separate from the book) - rust-lang#110599 (Remove an unused `&[Ty]` <-> `&[GenericArg]`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This adds internal MIR
TerminatorKind::Call
to SMIRTerminator::Call
conversion.r? @oli-obk