aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/strcpy_chk-1.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/strcpy_chk-1.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/strcpy_chk-1.ll')
-rw-r--r--test/Transforms/InstCombine/strcpy_chk-1.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/strcpy_chk-1.ll b/test/Transforms/InstCombine/strcpy_chk-1.ll
index 5b98cf8..8e7fec7 100644
--- a/test/Transforms/InstCombine/strcpy_chk-1.ll
+++ b/test/Transforms/InstCombine/strcpy_chk-1.ll
@@ -61,7 +61,7 @@ define void @test_simplify5() {
%src = getelementptr inbounds [12 x i8]* @.str, i32 0, i32 0
; CHECK: @__memcpy_chk
- %len = call i32 @llvm.objectsize.i32(i8* %dst, i1 false)
+ %len = call i32 @llvm.objectsize.i32.p0i8(i8* %dst, i1 false)
call i8* @__strcpy_chk(i8* %dst, i8* %src, i32 %len)
ret void
}
@@ -73,7 +73,7 @@ define i8* @test_simplify6() {
%dst = getelementptr inbounds [60 x i8]* @a, i32 0, i32 0
; CHECK: getelementptr inbounds ([60 x i8]* @a, i32 0, i32 0)
- %len = call i32 @llvm.objectsize.i32(i8* %dst, i1 false)
+ %len = call i32 @llvm.objectsize.i32.p0i8(i8* %dst, i1 false)
%ret = call i8* @__strcpy_chk(i8* %dst, i8* %dst, i32 %len)
ret i8* %ret
}
@@ -91,4 +91,4 @@ define void @test_no_simplify1() {
}
declare i8* @__strcpy_chk(i8*, i8*, i32) nounwind
-declare i32 @llvm.objectsize.i32(i8*, i1) nounwind readonly
+declare i32 @llvm.objectsize.i32.p0i8(i8*, i1) nounwind readonly