mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-28 14:32:51 +01:00
a9f4ed4070
function with GC. This will catch the error when the inliner inlines a function with GC into a caller with no GC. llvm-svn: 45350
12 lines
216 B
LLVM
12 lines
216 B
LLVM
; RUN: llvm-as < %s | llc
|
|
|
|
%Env = type i8*
|
|
|
|
define void @.main(%Env) gc "shadow-stack" {
|
|
%Root = alloca %Env
|
|
call void @llvm.gcroot( %Env* %Root, %Env null )
|
|
unreachable
|
|
}
|
|
|
|
declare void @llvm.gcroot(%Env*, %Env)
|