commit | 9bd7d16440f97821fe2d036f3118c5c7aae926bb | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sat May 14 23:26:09 2011 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sat May 14 23:26:09 2011 +0000 |
tree | bc635b613f3e4c8459ee8b57904e07d4bec87ee5 | |
parent | 1eace078a48af107906ec49f3156a86e282360d3 [diff] |
When emitting the destructor for a class with a vtable, if we can determine that the destructor body is trivial and that all member variables also have either trivial destructors or trivial destructor bodies, we don't need to initialize the vtable pointers since no virtual member functions will be called on the destructor. Fixes PR9181. llvm-svn: 131368