]> granicus.if.org Git - clang/commitdiff
Simplify.
authorDevang Patel <dpatel@apple.com>
Tue, 5 Apr 2011 23:26:36 +0000 (23:26 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 5 Apr 2011 23:26:36 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128957 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 2227341f28d6c615fc12b95b66d640c5f08d7354..1efd82e11dc89d75751d6776ab741f5fca22db3b 100644 (file)
@@ -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));