[PATCH] D29303: In VirtualCallChecker, handle indirect calls

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 30 13:21:22 PST 2017


sammccall added a comment.

I couldn't work out how to add a test for this, advice appreciated.

Closest I could get was adding something like this to test/Analysis/virtualcall.cpp:

  class F { public: F(); void foo(); };
  F::F() { void (F::* ptr) = &F::foo; (this->*ptr)(); }

which crashes, but only if I add extra logging :\


https://reviews.llvm.org/D29303





More information about the cfe-commits mailing list