aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/debuginfo.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-07 18:06:48 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-07 18:06:48 +0000
commitc4a8c07f6489c0081207f722ce0a4502614aef69 (patch)
tree50744632e73b88c6c8aa2c927ac276d1ca1be817 /test/Transforms/InstCombine/debuginfo.ll
parentca7b2d08d7b918e5e8e921a837623af962b27d00 (diff)
downloadexternal_llvm-c4a8c07f6489c0081207f722ce0a4502614aef69.zip
external_llvm-c4a8c07f6489c0081207f722ce0a4502614aef69.tar.gz
external_llvm-c4a8c07f6489c0081207f722ce0a4502614aef69.tar.bz2
Change objectsize intrinsic to accept different address spaces.
Bitcasting everything to i8* won't work. Autoupgrade the old intrinsic declarations to use the new mangling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/debuginfo.ll')
-rw-r--r--test/Transforms/InstCombine/debuginfo.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/debuginfo.ll b/test/Transforms/InstCombine/debuginfo.ll
index 290bfb0..925883c 100644
--- a/test/Transforms/InstCombine/debuginfo.ll
+++ b/test/Transforms/InstCombine/debuginfo.ll
@@ -2,7 +2,7 @@
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
-declare i64 @llvm.objectsize.i64(i8*, i1) nounwind readnone
+declare i64 @llvm.objectsize.i64.p0i8(i8*, i1) nounwind readnone
declare i8* @foo(i8*, i32, i64, i64) nounwind
@@ -23,7 +23,7 @@ entry:
%tmp1 = load i32* %__val.addr, align 4, !dbg !21
%tmp2 = load i64* %__len.addr, align 8, !dbg !21
%tmp3 = load i8** %__dest.addr, align 8, !dbg !21
- %0 = call i64 @llvm.objectsize.i64(i8* %tmp3, i1 false), !dbg !21
+ %0 = call i64 @llvm.objectsize.i64.p0i8(i8* %tmp3, i1 false), !dbg !21
%call = call i8* @foo(i8* %tmp, i32 %tmp1, i64 %tmp2, i64 %0), !dbg !21
ret i8* %call, !dbg !21
}