forked from OSchip/llvm-project
Static methods do not need "this" pointer argument.
llvm-svn: 94756
This commit is contained in:
parent
946edc1aa6
commit
4c3e7e99ca
|
@ -525,6 +525,11 @@ llvm::DIType
|
|||
CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method,
|
||||
llvm::DICompileUnit Unit) {
|
||||
llvm::DIType FnTy = getOrCreateType(Method->getType(), Unit);
|
||||
|
||||
// Static methods do not need "this" pointer argument.
|
||||
if (Method->isStatic())
|
||||
return FnTy;
|
||||
|
||||
// Add "this" pointer.
|
||||
|
||||
llvm::DIArray Args = llvm::DICompositeType(FnTy.getNode()).getTypeArray();
|
||||
|
|
Loading…
Reference in New Issue