brintos

brintos / llvm-project-archived public Read only

0
0
Text · 571 B · c146188 Raw
23 lines · plain
1; RUN: llc < %s -mtriple=x86_64--2; RUN: llc < %s -mtriple=i686--3 4; This test verifies that SelectionDAG can handle landingPad of token type and not crash LLVM.5 6define void @test() personality ptr @dummy_personality {7entry:8  invoke void @dummy()9          to label %return unwind label %unwind10 11unwind:                                           ; preds = %entry12  %lp = landingpad token13            cleanup14  br label %return15 16return:                                           ; preds = %entry17  ret void18}19 20declare void @dummy()21 22declare i32 @dummy_personality(...)23