Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

27 lines
603 B
LLVM

; RUN: opt -winehprepare < %s
target triple = "x86_64-pc-windows-msvc"
define void @test1() personality i32 (...)* @__CxxFrameHandler3 {
entry:
invoke void @f(i32 1)
to label %exit unwind label %cleanup
cleanup:
%cp = cleanuppad within none []
call void asm sideeffect "", ""()
cleanupret from %cp unwind to caller
exit:
ret void
}
; CHECK-LABEL: define void @test1(
; CHECK: %[[cp:.*]] = cleanuppad within none []
; CHECK-NEXT: call void asm sideeffect "", ""()
; CHECK-NEXT: cleanupret from %[[cp]] unwind to caller
declare void @f(i32)
declare i32 @__CxxFrameHandler3(...)