diff options
| author | John McCall <rjmccall@apple.com> | 2010-04-22 01:10:34 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-04-22 01:10:34 +0000 |
| commit | ac418162692a951ca3796d6830496a85a2d12493 (patch) | |
| tree | 30b82e9e54c382ecd6fb56eaf7286244ede9abc7 /lib/CodeGen/CodeGenFunction.h | |
| parent | a41a8c5972c2632247ae7913cf6ce65d45f7e702 (diff) | |
| download | clang-ac418162692a951ca3796d6830496a85a2d12493.tar.gz clang-ac418162692a951ca3796d6830496a85a2d12493.tar.bz2 clang-ac418162692a951ca3796d6830496a85a2d12493.tar.xz | |
Call PerformCopyInitialization to properly initialize the exception temporary
in a throw expression. Use EmitAnyExprToMem to emit the throw expression,
which magically elides the final copy-constructor call (which raises a new
strict-compliance bug, but baby steps). Give __cxa_throw a destructor pointer
if the exception type has a non-trivial destructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index a913459ade..302f9abd23 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -671,6 +671,9 @@ public: llvm::AllocaInst *CreateTempAlloca(const llvm::Type *Ty, const llvm::Twine &Name = "tmp"); + /// InitTempAlloca - Provide an initial value for the given alloca. + void InitTempAlloca(llvm::AllocaInst *Alloca, llvm::Value *Value); + /// CreateIRTemp - Create a temporary IR object of the given type, with /// appropriate alignment. This routine should only be used when an temporary /// value needs to be stored into an alloca (for example, to avoid explicit |
