mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
859ff3505c
SwiftTailCC has a different set of requirements than the C calling convention for a tail call. The exact argument sequence doesn't have to match, but fewer ABI-affecting attributes are allowed. Also make sure the musttail diagnostic triggers if a musttail call isn't actually a tail call.
9 lines
320 B
LLVM
9 lines
320 B
LLVM
; RUN: not --crash llc -mtriple=thumbv7k-apple-ios %s -o - 2>&1 | FileCheck %s
|
|
|
|
; CHECK: LLVM ERROR: failed to perform tail call elimination on a call site marked musttail
|
|
declare tailcc [16 x i64] @callee()
|
|
define tailcc [16 x i64] @caller() {
|
|
%res = musttail call tailcc [16 x i64] @callee()
|
|
ret [16 x i64] %res
|
|
}
|