aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-02-15 23:36:28 +0000
committerDevang Patel <dpatel@apple.com>2011-02-15 23:36:28 +0000
commit6354d68cbbbda2ede44f68bb2cfe0f31795e8844 (patch)
tree09c2492ce8a80b6d9c5fe85c91a8f83568bdf481 /lib/CodeGen
parent23ade507cecd24b03f5e4b5ebaea48eb38060262 (diff)
Only c++ class arguments with non trivial constructor or destructor needs a reference.
C struct arguments do not need this adjustment. This fixes 7 failures in callfuncs.exp from gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 091dcc9d0e..2debea1733 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1761,7 +1761,7 @@ void CGDebugInfo::EmitDeclare(const VarDecl *VD, unsigned Tag,
// If an aggregate variable has non trivial destructor or non trivial copy
// constructor than it is pass indirectly. Let debug info know about this
// by using reference of the aggregate type as a argument type.
- if (IndirectArgument && VD->getType()->isRecordType())
+ if (IndirectArgument && VD->getType()->isClassType())
Ty = DBuilder.CreateReferenceType(Ty);
// If Storage is an aggregate returned as 'sret' then let debugger know