[clang] [ObjC] Check entire chain of superclasses to see if class layout can be statically known (PR #81335)
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 22 13:36:12 PST 2024
================
@@ -1,6 +1,12 @@
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 -emit-llvm %s -o - | FileCheck %s
// CHECK: @"OBJC_IVAR_$_StaticLayout.static_layout_ivar" = hidden constant i64 20
+// CHECK: @"OBJC_IVAR_$_SuperClass.superClassIvar" = hidden constant i64 20
----------------
rjmccall wrote:
Please add a test for the access to this. It'll be in a synthesized method.
https://github.com/llvm/llvm-project/pull/81335
More information about the cfe-commits
mailing list