]> granicus.if.org Git - clang/commit
[clang] Devirtualization for classes with destructors marked as 'final'
authorDavid Bolvansky <david.bolvansky@gmail.com>
Sat, 31 Aug 2019 18:52:44 +0000 (18:52 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Sat, 31 Aug 2019 18:52:44 +0000 (18:52 +0000)
commitbbf5599083233ce072a33769c19c22e6e4ae1671
tree7130b3d84fcbb09204b7efa5168b79e2a81a2666
parentf33610fed0f33eb24c213517e1d38e589bb944e2
[clang] Devirtualization for classes with destructors marked as 'final'

A class with a destructor marked final cannot be derived from, so it should afford the same devirtualization opportunities as marking the entire class final.

Patch by logan-5 (Logan Smith)
Reviewed by rsmith

Differential Revision: https://reviews.llvm.org/D66621

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370597 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclCXX.cpp
test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp