summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-08 01:29:31 +0000
committerMike Stump <mrs@apple.com>2009-12-08 01:29:31 +0000
commit02c23d68cb7c8ee64e67dcced2b252a175fc45a8 (patch)
tree2adfcaf31f78841d9128aa657f0367de2812a388 /clang/lib/CodeGen/CGException.cpp
parent220bf4fc5a94a01a6e429def403da1bbe537bb2a (diff)
downloadbcm5719-llvm-02c23d68cb7c8ee64e67dcced2b252a175fc45a8.tar.gz
bcm5719-llvm-02c23d68cb7c8ee64e67dcced2b252a175fc45a8.zip
Fixup catch parameters with class reference type. WIP.
llvm-svn: 90821
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index 829f1144113..88e7eb5e5c0 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud