[all-commits] [llvm/llvm-project] 7eae8c: Don't update the vptr at the start of the destruct...
Richard Smith via All-commits
all-commits at lists.llvm.org
Fri Oct 8 19:59:58 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7eae8c6e62b2a91e71aade19324b9d2242bcb4ab
https://github.com/llvm/llvm-project/commit/7eae8c6e62b2a91e71aade19324b9d2242bcb4ab
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2021-10-08 (Fri, 08 Oct 2021)
Changed paths:
M clang/lib/CodeGen/CGClass.cpp
M clang/test/CodeGenCXX/destructors.cpp
Log Message:
-----------
Don't update the vptr at the start of the destructor of a final class.
In this case, we know statically that we're destroying the most-derived
class, so the vptr must already point to the current class and never
needs to be updated.
More information about the All-commits
mailing list