aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/GC/lower_gcroot.ll
blob: bd5a2bd14b4e61cf8d559e57aefbd582a39377c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
; 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)