[PATCH] D135091: Create storage for the `_cmd` argument to the helper function for generated getters/setters of `direct` Objective-C properties.

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 6 17:24:21 PDT 2022


ahatanak accepted this revision.
ahatanak added a comment.

LGTM



================
Comment at: clang/test/CodeGenObjC/direct-method.m:178
+// CHECK-NEXT: [[IVAR:%.*]] = load {{.*}} @"OBJC_IVAR_$_Root._objectProperty",
+// CHECK-NEXT: call i8* @objc_getProperty(i8* noundef [[SELF]], i8* noundef undef, i64 noundef [[IVAR]], {{.*}})
+
----------------
`noundef` means the value isn't undefined, right? Is it safe to use it with `undef`? We might want to fix this if it isn't.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135091/new/

https://reviews.llvm.org/D135091



More information about the cfe-commits mailing list