summaryrefslogtreecommitdiff
path: root/test/CodeGen/object-size.c
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-09 15:53:34 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-09 15:53:34 +0000
commit08a9ae95ba7e0a87e667f97ccc5bac646df9a705 (patch)
tree35c153a72ba127c12aca2a8b641c0af683207375 /test/CodeGen/object-size.c
parent83a22ecbf52c06b4ee364f3fadcdb0abaf2dabf6 (diff)
downloadclang-08a9ae95ba7e0a87e667f97ccc5bac646df9a705.tar.gz
update calls to objectsize intrinsic to match LLVM r156473
add a test for -fbounds-checking code generation git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/object-size.c')
-rw-r--r--test/CodeGen/object-size.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/object-size.c b/test/CodeGen/object-size.c
index 1f16d02d7d..966d59f11d 100644
--- a/test/CodeGen/object-size.c
+++ b/test/CodeGen/object-size.c
@@ -40,7 +40,7 @@ void test4() {
// CHECK: define void @test5
void test5() {
// CHECK: = load i8** @gp
- // CHECK-NEXT:= call i64 @llvm.objectsize.i64(i8* %{{.*}}, i1 false)
+ // CHECK-NEXT:= call i64 @llvm.objectsize.i64(i8* %{{.*}}, i1 false, i32 0)
strcpy(gp, "Hi there");
}
@@ -55,7 +55,7 @@ void test6() {
// CHECK: define void @test7
void test7() {
int i;
- // CHECK: = call i64 @llvm.objectsize.i64(i8* {{.*}}@gbuf{{.*}}, i1 false)
+ // CHECK: = call i64 @llvm.objectsize.i64(i8* {{.*}}@gbuf{{.*}}, i1 false, i32 0)
strcpy((++i, gbuf), "Hi there");
}