[PATCH] D33191: [analyzer] ObjCGenerics: account for __kindof specifiers met along a chain of casts.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 18 09:16:36 PDT 2017


NoQ updated this revision to Diff 99443.
NoQ added a comment.

I think i found a relatively clean way of storing the kindof specifiers, which is within the most-specialized type object itself.

Like, if we see `Foo<X, Y>` being casted to `Foo<__kindof X, Y>` and in another place to `Foo<X, __kindof Y>`, then we'd store `Foo<__kindof X, __kindof Y>` in our map.


https://reviews.llvm.org/D33191

Files:
  lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
  test/Analysis/generics.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33191.99443.patch
Type: text/x-patch
Size: 36849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170518/785c83cd/attachment-0001.bin>


More information about the cfe-commits mailing list