1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/X86/wineh-no-ehpads.ll
Reid Kleckner d9dbfe296b [WinEH] Don't let UnwindHelp alias the return address
On top of that, don't bother allocating and initializing UnwindHelp if
we don't have any funclets. Currently we always use RBP as our frame
pointer when funclets are present, so this change makes it impossible to
come here without any fixed stack objects.

Fixes PR25533.

llvm-svn: 253245
2015-11-16 18:47:25 +00:00

21 lines
427 B
LLVM

; RUN: llc < %s | FileCheck %s
target triple = "x86_64-pc-windows-msvc"
declare void @g()
declare i32 @__CxxFrameHandler3(...)
define void @personality_no_ehpad() personality i32 (...)* @__CxxFrameHandler3 {
call void @g()
ret void
}
; CHECK-LABEL: personality_no_ehpad: # @personality_no_ehpad
; CHECK-NOT: movq $-2,
; CHECK: callq g
; CHECK: nop
; CHECK: retq
; Shouldn't have any LSDA either.
; CHECK-NOT: cppxdata