mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
b9d0b39d5b
The Swift CC is identical to Win64 CC with the exception of swift error being passed in r12 which is a CSR. However, since this calling convention is only used in swift -> swift code, it does not impact interoperability and can be treated entirely as Win64 CC. We would previously incorrectly lower the frame setup as we did not treat the frame as conforming to Win64 specifications. llvm-svn: 313813
12 lines
215 B
LLVM
12 lines
215 B
LLVM
; RUN: llc -mtriple x86_64-unknown-windows-msvc -filetype asm -o - %s | FileCheck %s
|
|
|
|
define swiftcc void @f() {
|
|
%1 = alloca i8
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: f
|
|
; CHECK: .seh_stackalloc 8
|
|
; CHECK: .seh_endprologue
|
|
|