Skip to content

Commit f7002a2

Browse files
committed
riscv: update 'failed to perform tail call elimination' example
It is kind of trivial now, because musttail is accepted for more signatures
1 parent f3292f3 commit f7002a2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/test/CodeGen/RISCV/musttail-call.ll

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
; RUN: not --crash llc -mtriple riscv64-unknown-elf -o - %s \
1010
; RUN: 2>&1 | FileCheck %s
1111

12-
%struct.A = type { i32 }
12+
declare void @callee_musttail()
1313

14-
declare void @callee_musttail(ptr sret(%struct.A) %a)
15-
define void @caller_musttail(ptr sret(%struct.A) %a) {
14+
define void @caller_musttail() #0 {
1615
; CHECK: LLVM ERROR: failed to perform tail call elimination on a call site marked musttail
1716
entry:
18-
musttail call void @callee_musttail(ptr sret(%struct.A) %a)
17+
musttail call void @callee_musttail()
1918
ret void
2019
}
20+
21+
attributes #0 = { "interrupt"="machine" }

0 commit comments

Comments
 (0)