[all-commits] [llvm/llvm-project] 298415: Make SmallVectorImpl destructor protected (#71746)
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Thu Nov 9 08:53:00 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2984156fd34a6969c7461b228d90b72711e3797c
https://github.com/llvm/llvm-project/commit/2984156fd34a6969c7461b228d90b72711e3797c
Author: Andy Kaylor <andrew.kaylor at intel.com>
Date: 2023-11-09 (Thu, 09 Nov 2023)
Changed paths:
M llvm/include/llvm/ADT/SmallVector.h
Log Message:
-----------
Make SmallVectorImpl destructor protected (#71746)
Because the SmallVectorImpl destructor is not virtual, the destructor of
derived classes will not be called if pointers to the SmallVectorImpl
class are deleted directly. Making the SmallVectorImpl destructor
protected will prevent this.
More information about the All-commits
mailing list