Matthias Krüger
2f2664923b
Rollup merge of #102778 - nbdd0121:mir, r=tmiasko
...
Fix MIR inlining of asm_unwind
The MIR inlining currently doesn't handle inline asm's unwind edge correctly.
This code will cause ICE:
```rust
struct D;
impl Drop for D {
fn drop(&mut self) {}
}
#[inline(always)]
fn foo() {
let _d = D;
unsafe { std::arch::asm!("", options(may_unwind)) };
}
pub fn main() {
foo();
}
```
This PR fixes this issue. I also take the opportunity to extract common code into a method.
2022-10-08 14:38:19 +02:00
..
2022-10-06 03:01:57 +00:00
2022-10-06 03:01:57 +00:00
2022-09-26 19:19:21 +02:00
2022-09-29 16:49:04 +09:00
2022-09-29 16:49:04 +09:00
2022-10-08 14:38:18 +02:00
2022-10-06 03:01:57 +00:00
2022-10-06 15:32:41 +03:00
2022-10-02 13:42:14 +00:00
2022-10-06 16:29:45 +02:00
2022-10-08 14:38:18 +02:00
2022-10-08 14:38:18 +02:00
2022-10-06 16:29:45 +02:00
2022-10-06 15:49:44 +11:00
2022-10-03 08:53:06 +02:00
2022-10-06 16:29:44 +02:00
2022-10-06 05:58:27 +00:00
2022-10-05 09:53:49 +09:00
2022-09-29 16:49:04 +09:00
2022-10-06 03:01:57 +00:00
2022-10-08 14:38:18 +02:00
2022-09-29 16:49:04 +09:00
2022-09-29 16:49:04 +09:00
2022-09-29 16:49:04 +09:00
2022-10-07 07:10:40 -05:00
2022-10-06 16:29:45 +02:00
2022-09-29 16:49:04 +09:00
2022-10-07 20:50:51 +00:00
2022-10-07 18:08:49 +02:00
2022-09-26 16:51:18 -07:00
2022-10-03 13:52:17 +01:00
2022-10-06 03:01:57 +00:00
2022-10-08 14:38:18 +02:00
2022-10-08 14:38:18 +02:00
2022-10-08 14:38:18 +02:00
2022-10-08 14:38:19 +02:00
2022-10-06 03:01:57 +00:00
2022-10-06 03:01:57 +00:00
2022-09-28 13:47:17 -07:00
2022-10-04 08:59:20 +00:00
2022-09-29 16:49:04 +09:00
2022-09-29 08:44:52 +10:00
2022-10-06 15:49:44 +11:00
2022-10-06 03:01:57 +00:00
2022-10-06 05:58:27 +00:00
2022-09-29 08:44:52 +10:00
2022-09-26 10:14:45 +02:00
2022-10-06 15:49:44 +11:00
2022-10-06 03:01:57 +00:00
2022-10-06 03:01:57 +00:00
2022-10-06 13:41:12 +04:00
2022-10-07 17:37:39 +00:00
2022-10-07 07:10:40 -05:00
2022-10-07 07:06:19 -05:00
2022-10-07 07:10:40 -05:00
2022-09-29 16:49:04 +09:00