summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/bounds-checking.c
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-22 15:26:48 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-22 15:26:48 +0000
commit2b1ff46ed101e4a79946451d7f8815338a93bb5a (patch)
tree6638f7cf1fa2507e06ea85109b01cde94bcadd02 /clang/test/CodeGen/bounds-checking.c
parentad40c0a4252a549388c299fa80d15dc67f13242e (diff)
downloadbcm5719-llvm-2b1ff46ed101e4a79946451d7f8815338a93bb5a.tar.gz
bcm5719-llvm-2b1ff46ed101e4a79946451d7f8815338a93bb5a.zip
revert the usage of the objectsize intrinsic with 3 parameters (to match LLVM r157255)
llvm-svn: 157256
Diffstat (limited to 'clang/test/CodeGen/bounds-checking.c')
-rw-r--r--clang/test/CodeGen/bounds-checking.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGen/bounds-checking.c b/clang/test/CodeGen/bounds-checking.c
index ce7f24fde93..3271b76dcbd 100644
--- a/clang/test/CodeGen/bounds-checking.c
+++ b/clang/test/CodeGen/bounds-checking.c
@@ -4,22 +4,22 @@
double f(int b, int i) {
double a[b];
return a[i];
- // CHECK: objectsize.i64({{.*}}, i1 false, i32 4)
+ // CHECK: objectsize.i64({{.*}}, i1 false)
// CHECK: icmp uge i64 {{.*}}, 8
}
// CHECK: @f2
void f2() {
int a[2];
- // CHECK: objectsize.i64({{.*}}, i1 false, i32 4)
+ // CHECK: objectsize.i64({{.*}}, i1 false)
// CHECK: icmp uge i64 {{.*}}, 4
a[1] = 42;
short *b = malloc(64);
- // CHECK: objectsize.i64({{.*}}, i1 false, i32 4)
+ // CHECK: objectsize.i64({{.*}}, i1 false)
// CHECK: icmp uge i64 {{.*}}, 4
// CHECK: getelementptr {{.*}}, i64 5
- // CHECK: objectsize.i64({{.*}}, i1 false, i32 4)
+ // CHECK: objectsize.i64({{.*}}, i1 false)
// CHECK: icmp uge i64 {{.*}}, 2
b[5] = a[1]+2;
}
OpenPOWER on IntegriCloud