blob: 00e027b8d3c8355c9bc1d3832e69141b61b51de4 [file] [log] [blame]
Duncan Sandsd548f6b2010-05-02 15:36:26 +00001; RUN: llc < %s
Duncan Sandsc7f7d5e2007-12-31 18:35:50 +00002; PR1833
3
Duncan Sandsc7f7d5e2007-12-31 18:35:50 +00004 %struct.__class_type_info_pseudo = type { %struct.__type_info_pseudo }
5 %struct.__type_info_pseudo = type { i8*, i8* }
6@_ZTI2e1 = external constant %struct.__class_type_info_pseudo ; <%struct.__class_type_info_pseudo*> [#uses=1]
7
8define void @_Z7ex_testv() {
9entry:
10 invoke void @__cxa_throw( i8* null, i8* bitcast (%struct.__class_type_info_pseudo* @_ZTI2e1 to i8*), void (i8*)* null ) noreturn
11 to label %UnifiedUnreachableBlock unwind label %lpad
12
13bb14: ; preds = %lpad
14 unreachable
15
16lpad: ; preds = %entry
17 invoke void @__cxa_end_catch( )
18 to label %bb14 unwind label %lpad17
19
20lpad17: ; preds = %lpad
21 %eh_select20 = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* null, i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*), i8* null ) ; <i32> [#uses=0]
22 unreachable
23
24UnifiedUnreachableBlock: ; preds = %entry
25 unreachable
26}
27
28declare void @__cxa_throw(i8*, i8*, void (i8*)*) noreturn
29
30declare i32 @llvm.eh.selector.i32(i8*, i8*, ...)
31
32declare void @__cxa_end_catch()
33
34declare i32 @__gxx_personality_v0(...)