diff options
| author | Devang Patel <dpatel@apple.com> | 2011-04-05 23:26:36 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-04-05 23:26:36 +0000 |
| commit | 78019ec14d77e2664ee40a3e15f3add5cc4fb882 (patch) | |
| tree | 7c4f0a26f20a2a52c83a4489e9aeab998e2e2db3 /clang/lib/CodeGen | |
| parent | 7c9dd3ce3c70301ed46f7eb1345a96cfd1fa37b0 (diff) | |
| download | bcm5719-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.cpp | 4 |
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)); |

