diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-10 05:39:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-10 05:39:13 +0000 |
commit | 117b724b594b60b052e43ee1c5adc6f0841f27fc (patch) | |
tree | f0a3ec87bf19415643af87062c45faf7afd3f577 /clang/test/CodeGenObjC/arc.m | |
parent | 13ee4f48341b9f7f7fb3b18126744b2358f7b263 (diff) | |
download | bcm5719-llvm-117b724b594b60b052e43ee1c5adc6f0841f27fc.tar.gz bcm5719-llvm-117b724b594b60b052e43ee1c5adc6f0841f27fc.zip |
keep track of whether being in a RS_StructPointer state
caused us to skip layout out a function accurately. If
so, flush the type cache for both the function and struct
case to ensure that any pointers to the functions get
recomputed. This is overconservative, but with this patch
clang can build itself again.
llvm-svn: 134863
Diffstat (limited to 'clang/test/CodeGenObjC/arc.m')
-rw-r--r-- | clang/test/CodeGenObjC/arc.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGenObjC/arc.m b/clang/test/CodeGenObjC/arc.m index dbfd9d335cf..6beac196327 100644 --- a/clang/test/CodeGenObjC/arc.m +++ b/clang/test/CodeGenObjC/arc.m @@ -1216,7 +1216,7 @@ void test39(void) { // CHECK: define void @test39() // CHECK: [[VAR:%.*]] = alloca i8* // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], - // CHECK-NEXT: [[T0:%.*]] = call i8* @test39_source() + // CHECK: [[T0:%.*]] = call i8* @test39_source() // CHECK-NEXT: [[T1:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T0]]) // CHECK-NEXT: store i8* [[T1]], i8** [[VAR]], // CHECK-NEXT: call void @objc_release(i8* [[T1]]) @@ -1226,7 +1226,7 @@ void test39(void) { // CHECK-NEXT: [[T0:%.*]] = load i8** [[VAR]] // CHECK-NEXT: store i8* [[T0]], i8** [[CAPTURE]] // CHECK-NEXT: [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to - // CHECK-NEXT: call void @test39_helper({{.*}} [[T0]]) + // CHECK: call void @test39_helper // CHECK-NEXT: ret void } @@ -1330,7 +1330,7 @@ void test41(void) { // CHECK: [[SELF:%.*]] = alloca [[TEST42:%.*]]*, // CHECK-NEXT: alloca i8* // CHECK-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], -// CHECK-NEXT: store +// CHECK: store // CHECK-NEXT: store // CHECK: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5 // CHECK-NEXT: [[T1:%.*]] = load [[TEST42]]** [[SELF]], @@ -1339,7 +1339,7 @@ void test41(void) { // CHECK-NEXT: [[T4:%.*]] = bitcast i8* [[T3]] to [[TEST42]]* // CHECK-NEXT: store [[TEST42]]* [[T4]], [[TEST42]]** [[T0]] // CHECK-NEXT: bitcast [[BLOCK_T]]* [[BLOCK]] to -// CHECK-NEXT: call void @test42_helper( +// CHECK: call void @test42_helper( // CHECK-NEXT: [[T1:%.*]] = load [[TEST42]]** [[T0]] // CHECK-NEXT: [[T2:%.*]] = bitcast [[TEST42]]* [[T1]] to i8* // CHECK-NEXT: call void @objc_release(i8* [[T2]]) |