[clang] [ObjC] Expand isClassLayoutKnownStatically to base classes as long as the implementation of it is known (PR #85465)
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 12 07:17:33 PST 2025
================
@@ -1592,6 +1592,11 @@ class CGObjCNonFragileABIMac : public CGObjCCommonMac {
bool isClassLayoutKnownStatically(const ObjCInterfaceDecl *ID) {
// Test a class by checking its superclasses up to
// its base class if it has one.
+
+ // Cannot check a null class
+ if (!ID)
+ return false;
----------------
ahatanak wrote:
I'm not sure why this change is needed. Can you add a test for it?
https://github.com/llvm/llvm-project/pull/85465
More information about the cfe-commits
mailing list