• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple aarch64-unknown-windows-msvc -filetype asm -o /dev/null %s
2
3declare dllimport void @f() local_unnamed_addr
4
5declare dso_local i32 @__C_specific_handler(...)
6
7define hidden swiftcc void @g() unnamed_addr personality i8* bitcast (i32 (...)* @__C_specific_handler to i8*) {
8entry:
9  invoke void @f() to label %__try.cont unwind label %catch.dispatch
10
11catch.dispatch:                                   ; preds = %entry
12  %0 = catchswitch within none [label %__except] unwind to caller
13
14__except:
15  %1 = catchpad within %0 [i8* null]              ; preds = %catch.dispatch
16  catchret from %1 to label %__try.cont
17
18__try.cont:                                       ; preds = %__except, %entry
19  ret void
20}
21
22define hidden fastcc void @h() unnamed_addr personality i8* bitcast (i32 (...)* @__C_specific_handler to i8*) {
23entry:
24  invoke void @f() to label %__try.cont unwind label %catch.dispatch
25
26catch.dispatch:                                   ; preds = %entry
27  %0 = catchswitch within none [label %__except] unwind to caller
28
29__except:                                         ; preds = %catch.dispatch
30  %1 = catchpad within %0 [i8* null]
31  catchret from %1 to label %__try.cont
32
33__try.cont:                                       ; preds = %__except, %entry
34  ret void
35}
36
37