From 9ecdf09cbf8b9e441ace8732286f92e76285703f Mon Sep 17 00:00:00 2001 From: Arnold Schwaighofer Date: Wed, 17 Aug 2022 07:30:14 -0700 Subject: [PATCH] Second attempt to fix IRGen/objc_object_getClass.swift There can be a `noundef` parameter attribute on object_getClass' declaration. rdar://98722116 --- test/IRGen/objc_object_getClass.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/IRGen/objc_object_getClass.swift b/test/IRGen/objc_object_getClass.swift index b7f7bd6a6498c..2c62ea309e8cc 100644 --- a/test/IRGen/objc_object_getClass.swift +++ b/test/IRGen/objc_object_getClass.swift @@ -18,5 +18,5 @@ func test(_ o: ObjCSubclass) { o.field = 10 } -// CHECK-DAG: declare i8* @object_getClass(i8*) +// CHECK-DAG: declare i8* @object_getClass(i8*{{.*}}) // CHECK-DAG: call %objc_class* bitcast (i8* (i8*)* @object_getClass to %objc_class* (%objc_object*)*)(%objc_object* %{{.*}})