File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1453,6 +1453,10 @@ void SelectionDAGISel::reportIPToStateForBlocks(MachineFunction *MF) {
1453
1453
if (BB->getFirstMayFaultInst ()) {
1454
1454
// Report IP range only for blocks with Faulty inst
1455
1455
auto MBBb = MBB.getFirstNonPHI ();
1456
+
1457
+ if (MBBb == MBB.end ())
1458
+ continue ;
1459
+
1456
1460
MachineInstr *MIb = &*MBBb;
1457
1461
if (MIb->isTerminator ())
1458
1462
continue ;
Original file line number Diff line number Diff line change
1
+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2
+ ; RUN: llc -mtriple=x86_64-pc-windows-msvc19.41.34120 < %s | FileCheck %s
3
+
4
+ define void @foo () personality ptr @__CxxFrameHandler3 {
5
+ ; CHECK-LABEL: foo:
6
+ ; CHECK: # %bb.0:
7
+ ; CHECK-NEXT: nop # avoids zero-length function
8
+ call void @llvm.seh.scope.begin ()
9
+ unreachable
10
+ }
11
+
12
+ declare i32 @__CxxFrameHandler3 (...)
13
+
14
+ declare void @llvm.seh.scope.begin ()
15
+
16
+ !llvm.module.flags = !{!0 }
17
+
18
+ !0 = !{i32 2 , !"eh-asynch" , i32 1 }
You can’t perform that action at this time.
0 commit comments