vsk marked 2 inline comments as done.
vsk added inline comments.

================
Comment at: clang/lib/CodeGen/CGObjC.cpp:1860
+          CGM.getObjCRuntime().GetClass(*this, InterfaceTy->getDecl());
+      Args.add(RValue::get(Cls), C.getObjCClassType());
+      llvm::Value *IsClass =
----------------
ahatanak wrote:
> It looks like `Args` should be cleared before adding the argument. Or should 
> the argument be added to `IsKindOfClassArg`?
Thanks for catching this. The argument should be added to `IsKindOfClassArg`. 
This wasn't working correctly before: a leftover 
`%struct.__objcFastEnumerationState*` was included in the message-send. I've 
added a runtime test to ensure that the diagnostic does not fire when the 
implicit cast is correct.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71491



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

Reply via email to