pcc added a comment. Wouldn't we get false positives if there is an indirect call in C++ code that calls into C code (or vice versa)?
I think I'd prefer it if we came up with a precise encoding of function types that was independent of RTTI, and use it in all languages. One possibility would be to represent each function type with an object of size 1 whose name contains the mangled function type, and use its address as the identity of the function type. https://reviews.llvm.org/D38210 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits