]> git.proxmox.com Git - rustc.git/blame - src/test/mir-opt/simple_match.match_bool.mir_map.0.mir
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / mir-opt / simple_match.match_bool.mir_map.0.mir
CommitLineData
ba9703b0
XL
1// MIR for `match_bool` 0 mir_map
2
3fn match_bool(_1: bool) -> usize {
064997fb
FG
4 debug x => _1; // in scope 0 at $DIR/simple-match.rs:+0:15: +0:16
5 let mut _0: usize; // return place in scope 0 at $DIR/simple-match.rs:+0:27: +0:32
ba9703b0
XL
6
7 bb0: {
064997fb
FG
8 FakeRead(ForMatchedPlace(None), _1); // scope 0 at $DIR/simple-match.rs:+1:11: +1:12
9 switchInt(_1) -> [false: bb2, otherwise: bb1]; // scope 0 at $DIR/simple-match.rs:+1:5: +1:12
ba9703b0
XL
10 }
11
29967ef6 12 bb1: {
064997fb 13 falseEdge -> [real: bb3, imaginary: bb2]; // scope 0 at $DIR/simple-match.rs:+2:9: +2:13
ba9703b0
XL
14 }
15
16 bb2: {
064997fb
FG
17 _0 = const 20_usize; // scope 0 at $DIR/simple-match.rs:+3:14: +3:16
18 goto -> bb4; // scope 0 at $DIR/simple-match.rs:+3:14: +3:16
ba9703b0
XL
19 }
20
29967ef6 21 bb3: {
064997fb
FG
22 _0 = const 10_usize; // scope 0 at $DIR/simple-match.rs:+2:17: +2:19
23 goto -> bb4; // scope 0 at $DIR/simple-match.rs:+2:17: +2:19
ba9703b0
XL
24 }
25
29967ef6 26 bb4: {
064997fb 27 return; // scope 0 at $DIR/simple-match.rs:+5:2: +5:2
ba9703b0
XL
28 }
29}