summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-06-12 19:49:17 +0000
committerReid Kleckner <reid@kleckner.net>2014-06-12 19:49:17 +0000
commita766029b81937aafb0ee7e83a6252e51eb1f9c34 (patch)
tree157961163b84ddb472cd8e8e693d0c38071007a7 /clang/lib/Frontend/FrontendActions.cpp
parentfbfbaf6a931918f7a648758b0a709d52b30ed71b (diff)
downloadbcm5719-llvm-a766029b81937aafb0ee7e83a6252e51eb1f9c34.tar.gz
bcm5719-llvm-a766029b81937aafb0ee7e83a6252e51eb1f9c34.zip
MS ABI: Fix forming pointers to members of a base class
Previously we would calculate the inheritance model of a class when requiring a pointer to member type of that class to be complete. The inheritance model is used to figure out how many fields are used by the member pointer. However, once we require a pointer to member of a derived class type to be complete, we can form pointers to members of bases without calculating the inheritance model for those bases. This was causing crashes on this simple test case: struct A { void f(); void f(int); }; struct B : public A {}; void g() { void (B::*a)() = &B::f; } Now we calculate the inheritance models of all base classes when completing a member pointer type. Fixes PR2007. llvm-svn: 210813
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud