mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
20cfdfefcf
Inline-asm calls aren't annotated with funclet bundle operands because they don't throw and cannot be inlined through. We shouldn't require them to bear an funclet bundle operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261942 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
603 B
LLVM
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(...)
|