[PATCH] D38774: [CodeGen] Add support for IncompleteArrayType in Obj-C ivars.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 22 20:36:42 PDT 2017


rjmccall added inline comments.


================
Comment at: clang/lib/CodeGen/CGObjCMac.cpp:5095
+    fieldType = fieldType->getAsArrayTypeUnsafe()->getElementType();
+  }
+
----------------
You can't just use isa<> here; there can be typedefs of incomplete array type.


https://reviews.llvm.org/D38774





More information about the cfe-commits mailing list