summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-04-05 23:26:36 +0000
committerDevang Patel <dpatel@apple.com>2011-04-05 23:26:36 +0000
commit78019ec14d77e2664ee40a3e15f3add5cc4fb882 (patch)
tree7c4f0a26f20a2a52c83a4489e9aeab998e2e2db3 /clang/lib/CodeGen
parent7c9dd3ce3c70301ed46f7eb1345a96cfd1fa37b0 (diff)
downloadbcm5719-llvm-78019ec14d77e2664ee40a3e15f3add5cc4fb882.tar.gz
bcm5719-llvm-78019ec14d77e2664ee40a3e15f3add5cc4fb882.zip
Simplify.
llvm-svn: 128957
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 2227341f28d..1efd82e11dc 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -655,9 +655,7 @@ CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method,
if (!Method->isStatic())
{
// "this" pointer is always first argument.
- ASTContext &Context = CGM.getContext();
- QualType ThisPtr =
- Context.getPointerType(Context.getTagDeclType(Method->getParent()));
+ QualType ThisPtr = Method->getThisType(CGM.getContext());
llvm::DIType ThisPtrType =
DBuilder.createArtificialType(getOrCreateType(ThisPtr, Unit));
OpenPOWER on IntegriCloud