We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3292f3 commit f7002a2Copy full SHA for f7002a2
llvm/test/CodeGen/RISCV/musttail-call.ll
@@ -9,12 +9,13 @@
9
; RUN: not --crash llc -mtriple riscv64-unknown-elf -o - %s \
10
; RUN: 2>&1 | FileCheck %s
11
12
-%struct.A = type { i32 }
+declare void @callee_musttail()
13
14
-declare void @callee_musttail(ptr sret(%struct.A) %a)
15
-define void @caller_musttail(ptr sret(%struct.A) %a) {
+define void @caller_musttail() #0 {
16
; CHECK: LLVM ERROR: failed to perform tail call elimination on a call site marked musttail
17
entry:
18
- musttail call void @callee_musttail(ptr sret(%struct.A) %a)
+ musttail call void @callee_musttail()
19
ret void
20
}
+
21
+attributes #0 = { "interrupt"="machine" }
0 commit comments