From 345e3d419eafb0e234aecb4a33f37efe2afbbf53 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sun, 18 Oct 2026 08:07:50 +0000 Subject: feat(classes): add copy constructors and statement-scoped temporaries Co-Authored-By: Claude Opus 5.5 --- include/cps/ExceptionHandler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/cps/ExceptionHandler.h') diff --git a/include/cps/ExceptionHandler.h b/include/cps/ExceptionHandler.h index a2dc5d0..f55526b 100644 --- a/include/cps/ExceptionHandler.h +++ b/include/cps/ExceptionHandler.h @@ -25,6 +25,7 @@ class ExceptionHandler { llvm::Instruction *Before; FunctionState State; bool Unwinding; + bool TemporariesOnly = false; }; std::map> CleanupPoints; bool FillingUnwind = false; @@ -50,7 +51,7 @@ public: llvm::Instruction *emitReturnCleanup(); void enableCleanups(llvm::Function *F); void recordExit(llvm::Instruction *Before, bool Unwinding = false); - void fillCleanups(llvm::Function *F, const std::function &Destroy); + void fillCleanups(llvm::Function *F, const std::function &Destroy); llvm::Value *emitCall(llvm::FunctionCallee Callee, llvm::ArrayRef Args, const llvm::Twine &Name = ""); -- cgit v1.3.1-4-g156e