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

Puyan Lotfi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 18:58:52 PDT 2022


plotfi added inline comments.


================
Comment at: clang/lib/CodeGen/CGCall.cpp:487
   SmallVector<CanQualType, 16> argTys;
   SmallVector<FunctionProtoType::ExtParameterInfo, 4> extParamInfos(2);
   argTys.push_back(Context.getCanonicalParamType(receiverType));
----------------
In order to fix the assert try this instead on line 487:

```
  SmallVector<FunctionProtoType::ExtParameterInfo, 4> extParamInfos(
      MD->isDirectMethod() ? 1 : 2);
```


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