diff options
| author | Devang Patel <dpatel@apple.com> | 2011-02-15 23:36:28 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-02-15 23:36:28 +0000 |
| commit | 49e3348e568059bd5597a42c2ab760adc801bc64 (patch) | |
| tree | 9725b4235ccaf7c4e69cbb0770088d48b1d6d41e /clang/lib | |
| parent | 531dbfa5d8d21a63fafc765a20c67d9142f55be8 (diff) | |
| download | bcm5719-llvm-49e3348e568059bd5597a42c2ab760adc801bc64.tar.gz bcm5719-llvm-49e3348e568059bd5597a42c2ab760adc801bc64.zip | |
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.
llvm-svn: 125615
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 091dcc9d0ea..2debea1733e 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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 |

