erik.pilkington added inline comments.

================
Comment at: lib/CodeGen/CGObjC.cpp:2634-2646
+  ASTContext &Ctx = getContext();
+  const ImplicitParamDecl *paramDecl =
+      ImplicitParamDecl::Create(Ctx, nullptr, SourceLocation(), nullptr,
+                                Ctx.VoidPtrTy, ImplicitParamDecl::Other);
+  FunctionArgList funcArgs;
+  funcArgs.push_back(paramDecl);
+  const CGFunctionInfo &fnInfo =
----------------
Can't you just write `EmitCallOrInvoke(fn, value)`? See what we do in 
`emitObjCValueOperation`, which can handle this case.


Repository:
  rC Clang

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

https://reviews.llvm.org/D61803



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to