From: Devang Patel Date: Tue, 9 Feb 2010 17:57:50 +0000 (+0000) Subject: Mark implicit "this" argument as an artificial argument. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=337472dcb74e302717f16bc5a4ef3763228c49e4;p=clang Mark implicit "this" argument as an artificial argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95673 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 752d5b1964..8b3e195fa5 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -546,7 +546,10 @@ CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method, ASTContext &Context = CGM.getContext(); QualType ThisPtr = Context.getPointerType(Context.getTagDeclType(Method->getParent())); - Elts.push_back(getOrCreateType(ThisPtr, Unit)); + llvm::DIType ThisPtrType = + DebugFactory.CreateArtificialType(getOrCreateType(ThisPtr, Unit)); + TypeCache[ThisPtr.getAsOpaquePtr()] = ThisPtrType.getNode(); + Elts.push_back(ThisPtrType); // Copy rest of the arguments. for (unsigned i = 1, e = Args.getNumElements(); i != e; ++i)