diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-04-10 08:12:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-10 08:12:14 -0400 |
commit | 5c8ba28c751bf0e7cb5c3ac9d223acba4cefc739 (patch) | |
tree | 23d97e922e1ecb1b9e3c76d9a2f0801c357f7c77 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 71f629fc2a93e41577c09bdd782b2ba524ed5fea (diff) | |
download | llvm-5c8ba28c751bf0e7cb5c3ac9d223acba4cefc739.zip llvm-5c8ba28c751bf0e7cb5c3ac9d223acba4cefc739.tar.gz llvm-5c8ba28c751bf0e7cb5c3ac9d223acba4cefc739.tar.bz2 |
[C11] Implement WG14 N1285 (temporary lifetimes) (#133472)
This feature largely models the same behavior as in C++11. It is
technically a breaking change between C99 and C11, so the paper is not
being backported to older language modes.
One difference between C++ and C is that things which are rvalues in C
are often lvalues in C++ (such as the result of a ternary operator or a
comma operator).
Fixes #96486
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 2b1062d..a398ba5 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2249,6 +2249,8 @@ public: void pushLifetimeExtendedDestroy(CleanupKind kind, Address addr, QualType type, Destroyer *destroyer, bool useEHCleanupForArray); + void pushLifetimeExtendedDestroy(QualType::DestructionKind dtorKind, + Address addr, QualType type); void pushCallObjectDeleteCleanup(const FunctionDecl *OperatorDelete, llvm::Value *CompletePtr, QualType ElementType); |