Skip to content

Commit 163e585

Browse files
committed
updated mir-opt test due to other recent changes to MIR
1 parent 20aba8f commit 163e585

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/test/mir-opt/instrument_coverage/rustc.main.InstrumentCoverage.diff

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
+ let mut _4: (); // in scope 0 at $DIR/instrument_coverage.rs:8:1: 14:2
1010

1111
bb0: {
12-
- falseUnwind -> [real: bb1, cleanup: bb6]; // scope 0 at $DIR/instrument_coverage.rs:9:5: 13:6
12+
- falseUnwind -> [real: bb1, cleanup: bb2]; // scope 0 at $DIR/instrument_coverage.rs:9:5: 13:6
1313
+ StorageLive(_4); // scope 0 at $DIR/instrument_coverage.rs:8:1: 14:2
1414
+ _4 = const std::intrinsics::count_code_region(const 0u32) -> bb7; // scope 0 at $DIR/instrument_coverage.rs:8:1: 14:2
1515
+ // ty::Const
@@ -28,7 +28,7 @@
2828

2929
bb1: {
3030
StorageLive(_2); // scope 0 at $DIR/instrument_coverage.rs:10:12: 10:17
31-
_2 = const bar() -> [return: bb2, unwind: bb6]; // scope 0 at $DIR/instrument_coverage.rs:10:12: 10:17
31+
_2 = const bar() -> [return: bb3, unwind: bb2]; // scope 0 at $DIR/instrument_coverage.rs:10:12: 10:17
3232
// ty::Const
3333
// + ty: fn() -> bool {bar}
3434
// + val: Value(Scalar(<ZST>))
@@ -37,16 +37,20 @@
3737
// + literal: Const { ty: fn() -> bool {bar}, val: Value(Scalar(<ZST>)) }
3838
}
3939

40-
bb2: {
41-
FakeRead(ForMatchedPlace, _2); // scope 0 at $DIR/instrument_coverage.rs:10:12: 10:17
42-
switchInt(_2) -> [false: bb4, otherwise: bb3]; // scope 0 at $DIR/instrument_coverage.rs:10:9: 12:10
40+
bb2 (cleanup): {
41+
resume; // scope 0 at $DIR/instrument_coverage.rs:8:1: 14:2
4342
}
4443

4544
bb3: {
46-
falseEdges -> [real: bb5, imaginary: bb4]; // scope 0 at $DIR/instrument_coverage.rs:10:9: 12:10
45+
FakeRead(ForMatchedPlace, _2); // scope 0 at $DIR/instrument_coverage.rs:10:12: 10:17
46+
switchInt(_2) -> [false: bb5, otherwise: bb4]; // scope 0 at $DIR/instrument_coverage.rs:10:9: 12:10
4747
}
4848

4949
bb4: {
50+
falseEdge -> [real: bb6, imaginary: bb5]; // scope 0 at $DIR/instrument_coverage.rs:10:9: 12:10
51+
}
52+
53+
bb5: {
5054
_1 = const (); // scope 0 at $DIR/instrument_coverage.rs:10:9: 12:10
5155
// ty::Const
5256
// + ty: ()
@@ -58,7 +62,7 @@
5862
goto -> bb0; // scope 0 at $DIR/instrument_coverage.rs:9:5: 13:6
5963
}
6064

61-
bb5: {
65+
bb6: {
6266
_0 = const (); // scope 0 at $DIR/instrument_coverage.rs:11:13: 11:18
6367
// ty::Const
6468
// + ty: ()
@@ -68,15 +72,11 @@
6872
// + literal: Const { ty: (), val: Value(Scalar(<ZST>)) }
6973
StorageDead(_2); // scope 0 at $DIR/instrument_coverage.rs:13:5: 13:6
7074
return; // scope 0 at $DIR/instrument_coverage.rs:14:2: 14:2
71-
}
72-
73-
bb6 (cleanup): {
74-
resume; // scope 0 at $DIR/instrument_coverage.rs:8:1: 14:2
7575
+ }
7676
+
7777
+ bb7: {
7878
+ StorageDead(_4); // scope 0 at $DIR/instrument_coverage.rs:9:5: 13:6
79-
+ falseUnwind -> [real: bb1, cleanup: bb6]; // scope 0 at $DIR/instrument_coverage.rs:9:5: 13:6
79+
+ falseUnwind -> [real: bb1, cleanup: bb2]; // scope 0 at $DIR/instrument_coverage.rs:9:5: 13:6
8080
}
8181
}
8282

0 commit comments

Comments
 (0)