aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/GC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-22 05:48:38 +0000
committerChris Lattner <sabre@nondot.org>2004-07-22 05:48:38 +0000
commitde1618f1bb7e647c24fb51e65d26078368525414 (patch)
tree4fc068a5f3094b9ab448f2ac27b1589186c627da /test/CodeGen/Generic/GC
parent10e169b0386d4fd93dca648b1188be0df0d9d405 (diff)
downloadexternal_llvm-de1618f1bb7e647c24fb51e65d26078368525414.zip
external_llvm-de1618f1bb7e647c24fb51e65d26078368525414.tar.gz
external_llvm-de1618f1bb7e647c24fb51e65d26078368525414.tar.bz2
Update gc intrinsics to take pointer to object as well as pointer to field.
Patch contributed by Tobias Nurmiranta git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/GC')
-rw-r--r--test/CodeGen/Generic/GC/alloc_loop.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Generic/GC/alloc_loop.ll b/test/CodeGen/Generic/GC/alloc_loop.ll
index 254f56d..2354f28 100644
--- a/test/CodeGen/Generic/GC/alloc_loop.ll
+++ b/test/CodeGen/Generic/GC/alloc_loop.ll
@@ -4,7 +4,7 @@ declare sbyte* %llvm_gc_allocate(uint)
declare void %llvm_gc_initialize(uint)
declare void %llvm.gcroot(sbyte**, sbyte*)
-declare void %llvm.gcwrite(sbyte*, sbyte**)
+declare void %llvm.gcwrite(sbyte*, sbyte*, sbyte**)
int %main() {
entry:
@@ -32,7 +32,7 @@ entry:
;; *B = A;
%B.1 = load sbyte*** %B
%A.1 = load sbyte** %A
- call void %llvm.gcwrite(sbyte* %A.1, sbyte** %B.1)
+ call void %llvm.gcwrite(sbyte* %A.1, sbyte* %B, sbyte** %B.1)
br label %AllocLoop