Mark  implicit "this" argument as an artificial argument.

llvm-svn: 95673
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 752d5b1..8b3e195 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -546,7 +546,10 @@
   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)