blob: 087b68bfce8aad28676100603807b5c2bde9d565 [file] [log] [blame]
Chen Lie2222fd2015-12-16 06:27:09 +00001; RUN: llc < %s
Chen Li3e8330a2015-12-16 04:48:42 +00002
Chen Lie2222fd2015-12-16 06:27:09 +00003; This test verifies that SelectionDAG can handle landingPad of token type and not crash LLVM.
Chen Li3e8330a2015-12-16 04:48:42 +00004
5define void @test() personality i32 (...)* @dummy_personality {
Chen Li3e8330a2015-12-16 04:48:42 +00006entry:
7 invoke void @dummy()
8 to label %return unwind label %unwind
9
10unwind: ; preds = %entry
11 %lp = landingpad token
12 cleanup
13 br label %return
14
15return: ; preds = %entry
16 ret void
17}
18
19declare void @dummy()
20
21declare i32 @dummy_personality(...)