Fixup catch parameters with class reference type. WIP.

llvm-svn: 90821
This commit is contained in:
Mike Stump 2009-12-08 01:29:31 +00:00
parent 220bf4fc5a
commit 02c23d68cb
1 changed files with 1 additions and 1 deletions

View File

@ -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);