[PATCH] D131424: Remove the unused/undefined _cmd parameter to objc_direct methods.

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 30 17:20:23 PDT 2022


ahatanak added a comment.

It looks like this patch causes an assertion to fail (`Assertion failed: (it != LocalDeclMap.end() && "Invalid argument to GetAddrOfLocalVar(), no decl!")`) when the following code is compiled.

  __attribute__((objc_direct_members))
  @interface C
  @property id prop;
  -(void)m0;
  @end
  
  @implementation C
  -(void)m0 {
  }
  @end

Do we need to synthesize `_cmd` in `generateObjCGetterBody` and `generateObjCSetterBody` if the property is direct too?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131424



More information about the cfe-commits mailing list