aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/TailCallElim/no-return-calls.ll
blob: f5643ae33304aaa13072a86d2c8e1b20e8012047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt < %s -tailcallelim -S | FileCheck %s

define void @t() nounwind ssp {
entry:
; CHECK: entry:
; CHECK: %0 = call i32 @foo()
; CHECK: ret void
  %0 = call i32 @foo() nounwind noreturn
  ret void
}

declare i32 @foo()