diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-09 15:53:34 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-09 15:53:34 +0000 |
commit | 08a9ae95ba7e0a87e667f97ccc5bac646df9a705 (patch) | |
tree | 35c153a72ba127c12aca2a8b641c0af683207375 /test/CodeGen/object-size.c | |
parent | 83a22ecbf52c06b4ee364f3fadcdb0abaf2dabf6 (diff) | |
download | clang-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.c | 4 |
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"); } |