]> granicus.if.org Git - clang/commit
Devirtualize destructor of final class.
authorHiroshi Yamauchi <yamauchi@google.com>
Fri, 21 Jun 2019 20:04:29 +0000 (20:04 +0000)
committerHiroshi Yamauchi <yamauchi@google.com>
Fri, 21 Jun 2019 20:04:29 +0000 (20:04 +0000)
commit22d1b39c33c416391114f4a4020f4f49c4c25d0f
treeb397834b450d1fb6c42f8d6534c872c1fb3d3ea7
parent2e0923a208d9ed225d3210840e36c70117cda31d
Devirtualize destructor of final class.

Summary:
Take advantage of the final keyword to devirtualize destructor calls.

Fix https://bugs.llvm.org/show_bug.cgi?id=21368

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: davidxl, Prazek, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364100 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprCXX.cpp
test/CodeGenCXX/devirtualize-dtor-final.cpp [new file with mode: 0644]