r306447 - test: fix test for release builds

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 27 11:57:50 PDT 2017


Author: compnerd
Date: Tue Jun 27 11:57:50 2017
New Revision: 306447

URL: http://llvm.org/viewvc/llvm-project?rev=306447&view=rev
Log:
test: fix test for release builds

Use a regex capture to avoid hardcoding the name.  This should repair
the failing buildbot.

Modified:
    cfe/trunk/test/CodeGenObjCXX/arc-indirect.mm

Modified: cfe/trunk/test/CodeGenObjCXX/arc-indirect.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/arc-indirect.mm?rev=306447&r1=306446&r2=306447&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/arc-indirect.mm (original)
+++ cfe/trunk/test/CodeGenObjCXX/arc-indirect.mm Tue Jun 27 11:57:50 2017
@@ -9,6 +9,7 @@ struct S {
 
 @interface C
 @end
+
 @implementation C
 - (void)object:(id)obj struct:(S)s {
 }
@@ -17,5 +18,5 @@ struct S {
 // CHECK-GNUSTEP: define internal void @_i_C__object_struct_(<{ %0*, i8*, i8*, %struct.S, [3 x i8] }>* inalloca)
 // CHECK-DARWIN: define internal void @"\01-[C object:struct:]"(<{ %0*, i8*, i8*, %struct.S, [3 x i8] }>* inalloca)
 // CHECK: %obj = getelementptr inbounds <{ %0*, i8*, i8*, %struct.S, [3 x i8] }>, <{ %0*, i8*, i8*, %struct.S, [3 x i8] }>* %0, i32 0, i32 2
-// CHECK: %1 = load i8*, i8** %obj, align 4
-// CHECK: call void @objc_storeStrong(i8** %obj, i8* %1)
+// CHECK: %[[INSTANCE:[0-9]+]] = load i8*, i8** %obj, align 4
+// CHECK: call void @objc_storeStrong(i8** %obj, i8* %[[INSTANCE]])




More information about the cfe-commits mailing list