diff options
author | Mike Stump <mrs@apple.com> | 2009-12-08 01:29:31 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-08 01:29:31 +0000 |
commit | b2debeb96da2b1d47ecffddbc35ade97b64af1c2 (patch) | |
tree | c2afc176a194bf85c912cfe521acb1c11fc8523c /lib/CodeGen | |
parent | c2456824a106455bae5d738fe65d80b14a6804c4 (diff) |
Fixup catch parameters with class reference type. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGException.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp index 829f114411..88e7eb5e5c 100644 --- a/lib/CodeGen/CGException.cpp +++ b/lib/CodeGen/CGException.cpp @@ -189,7 +189,7 @@ static void CopyObject(CodeGenFunction &CGF, const Expr *E, llvm::Value *N) { static void CopyObject(CodeGenFunction &CGF, QualType ObjectType, bool WasPointer, llvm::Value *E, llvm::Value *N) { // Store the throw exception in the exception object. - if (!CGF.hasAggregateLLVMType(ObjectType)) { + if (WasPointer || !CGF.hasAggregateLLVMType(ObjectType)) { llvm::Value *Value = E; if (!WasPointer) Value = CGF.Builder.CreateLoad(Value); |