]> granicus.if.org Git - clang/commit
[clang] Ensure that statements, expressions and types are trivially destructible
authorBruno Ricci <riccibrun@gmail.com>
Tue, 27 Aug 2019 11:35:49 +0000 (11:35 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Tue, 27 Aug 2019 11:35:49 +0000 (11:35 +0000)
commit48d573c2e13904741c9505d513bf5156eab512b8
tree85bcc409d8f314c519f7de197a388343b7830503
parentea608fd0e435f69e736170345071ab09681f7510
[clang] Ensure that statements, expressions and types are trivially destructible

Since statements, expressions and types are allocated with the BumpPtrAllocator
from ASTContext their destructor is not executed. Two classes are currently
exempted from the check : InitListExpr due to its ASTVector and
ConstantArrayType due to its APInt.

No functional changes.

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

Reviewed By: lebedev.ri, gribozavr

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370044 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Stmt.cpp
lib/AST/Type.cpp