@@ -601,19 +601,19 @@ all of the new IR instructions:
601
601
602
602
.. code-block :: text
603
603
604
- define i32 @f() nounwind personality i32 (...)* @__CxxFrameHandler3 {
604
+ define i32 @f() nounwind personality ptr @__CxxFrameHandler3 {
605
605
entry:
606
606
%obj = alloca %struct.Cleanup, align 4
607
607
%e = alloca i32, align 4
608
- %call = invoke %struct.Cleanup* @"??0Cleanup@@QEAA@XZ"(%struct.Cleanup* nonnull %obj)
608
+ %call = invoke ptr @"??0Cleanup@@QEAA@XZ"(ptr nonnull %obj)
609
609
to label %invoke.cont unwind label %lpad.catch
610
610
611
611
invoke.cont: ; preds = %entry
612
612
invoke void @"?may_throw@@YAXXZ"()
613
613
to label %invoke.cont.2 unwind label %lpad.cleanup
614
614
615
615
invoke.cont.2: ; preds = %invoke.cont
616
- call void @"??_DCleanup@@QEAA@XZ"(%struct.Cleanup* nonnull %obj) nounwind
616
+ call void @"??_DCleanup@@QEAA@XZ"(ptr nonnull %obj) nounwind
617
617
br label %return
618
618
619
619
return: ; preds = %invoke.cont.3, %invoke.cont.2
@@ -622,24 +622,24 @@ all of the new IR instructions:
622
622
623
623
lpad.cleanup: ; preds = %invoke.cont.2
624
624
%0 = cleanuppad within none []
625
- call void @"??1Cleanup@@QEAA@XZ"(%struct.Cleanup* nonnull %obj) nounwind
626
- cleanupret %0 unwind label %lpad.catch
625
+ call void @"??1Cleanup@@QEAA@XZ"(ptr nonnull %obj) nounwind
626
+ cleanupret from %0 unwind label %lpad.catch
627
627
628
628
lpad.catch: ; preds = %lpad.cleanup, %entry
629
629
%1 = catchswitch within none [label %catch.body] unwind label %lpad.terminate
630
630
631
631
catch.body: ; preds = %lpad.catch
632
- %catch = catchpad within %1 [%rtti.TypeDescriptor2* @"??_R0H@8", i32 0, i32* %e]
632
+ %catch = catchpad within %1 [ptr @"??_R0H@8", i32 0, ptr %e]
633
633
invoke void @"?may_throw@@YAXXZ"()
634
634
to label %invoke.cont.3 unwind label %lpad.terminate
635
635
636
636
invoke.cont.3: ; preds = %catch.body
637
- %3 = load i32, i32* %e, align 4
637
+ %3 = load i32, ptr %e, align 4
638
638
catchret from %catch to label %return
639
639
640
640
lpad.terminate: ; preds = %catch.body, %lpad.catch
641
641
cleanuppad within none []
642
- call void @"?terminate@@YAXXZ"
642
+ call void @"?terminate@@YAXXZ"()
643
643
unreachable
644
644
}
645
645
0 commit comments