diff options
author | John McCall <rjmccall@apple.com> | 2013-02-01 05:11:40 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-02-01 05:11:40 +0000 |
commit | 12cc42aa1b29168020a0d671314b39f7bd8a3d68 (patch) | |
tree | cf61d0818fbc612e9b99bb955eafcf6f541806ca /clang/lib/CodeGen/CodeGenFunction.h | |
parent | bc0e5c0114d68be7d86ca76ae466af56ac96ee4d (diff) | |
download | bcm5719-llvm-12cc42aa1b29168020a0d671314b39f7bd8a3d68.tar.gz bcm5719-llvm-12cc42aa1b29168020a0d671314b39f7bd8a3d68.zip |
Destroy arrays and ARC fields when throwing out of ctors.
Previously we were only handling non-array fields of class type.
Testcases derived from a patch by WenHan Gu.
llvm-svn: 174146
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 99bb8e37f45..15fd10ccc43 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1282,6 +1282,8 @@ public: void pushDestroy(QualType::DestructionKind dtorKind, llvm::Value *addr, QualType type); + void pushEHDestroy(QualType::DestructionKind dtorKind, + llvm::Value *addr, QualType type); void pushDestroy(CleanupKind kind, llvm::Value *addr, QualType type, Destroyer *destroyer, bool useEHCleanupForArray); void emitDestroy(llvm::Value *addr, QualType type, Destroyer *destroyer, |