forked from OSchip/llvm-project
Make sure to not accidentally get a bogus tail marker
llvm-svn: 21735
This commit is contained in:
parent
324d2eedb2
commit
318e328fc4
|
@ -0,0 +1,16 @@
|
|||
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep tail
|
||||
|
||||
implementation
|
||||
|
||||
declare void %bar(int*)
|
||||
|
||||
internal void %foo(int* %P) { ;; to be inlined
|
||||
tail call void %bar(int* %P)
|
||||
ret void
|
||||
}
|
||||
|
||||
void %caller() {
|
||||
%A = alloca int
|
||||
call void %foo(int* %A) ;; not a tail call
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue