brintos

brintos / llvm-project-archived public Read only

0
0
Text · 623 B · 0f33575 Raw
27 lines · plain
1; RUN: opt < %s -passes=win-eh-prepare -S | FileCheck %s2 3target triple = "x86_64-pc-windows-msvc"4 5define void @test1() personality ptr @__CxxFrameHandler3 {6entry:7  invoke void @f(i32 1)8     to label %exit unwind label %cleanup9 10cleanup:11  %cp = cleanuppad within none []12  call void asm sideeffect "", ""()13  cleanupret from %cp unwind to caller14 15exit:16  ret void17}18 19; CHECK-LABEL: define void @test1(20; CHECK:      %[[cp:.*]] = cleanuppad within none []21; CHECK-NEXT: call void asm sideeffect "", ""()22; CHECK-NEXT: cleanupret from %[[cp]] unwind to caller23 24declare void @f(i32)25 26declare i32 @__CxxFrameHandler3(...)27