]> granicus.if.org Git - clang/commitdiff
test: correct an overzealous search-and-replace
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 24 Oct 2014 21:23:49 +0000 (21:23 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 24 Oct 2014 21:23:49 +0000 (21:23 +0000)
The temporary initialized is referenced as %0, not as the auto-release pool.
Fixes R+A tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220593 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjCXX/arc-cxx11-init-list.mm

index c3df97d00e385efdc89a510f6f2afa2f095836b4..7356b6e2a9a58e785218ac46199584c61061af19 100644 (file)
@@ -51,7 +51,7 @@ std::initializer_list<I *> il = { [I new] };
 
 // CHECK: [[POOL:%.*]] = {{.*}} call {{.*}} i8* @objc_autoreleasePoolPush()
 // CHECK: [[INSTANCE:%.*]] = {{.*}} call {{.*}} i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* {{.*}}, i8* {{.*}})
-// CHECK-NEXT: [[CAST:%.*]] = bitcast i8* [[INSTANCE]] to [[POOL]]*
-// CHECK-NEXT: store [[POOL]]* [[CAST]], [[POOL]]** getelementptr inbounds ([1 x [[POOL]]*]* @_ZGR2il_, i32 0, i32 0)
+// CHECK-NEXT: [[CAST:%.*]] = bitcast i8* [[INSTANCE]] to %0*
+// CHECK-NEXT: store %0* [[CAST]], %0** getelementptr inbounds ([1 x %0*]* @_ZGR2il_, i32 0, i32 0)
 // CHECK: {{.*}} call {{.*}} void @objc_autoreleasePoolPop(i8* [[POOL]])