diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-11-08 11:24:06 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-11-08 11:24:06 +0000 |
| commit | 13042a4a4a4c612e8f9e2ece59dbe719b2a3ecd5 (patch) | |
| tree | 64160b283affda531efbf8d30683317637523eb1 /clang/lib | |
| parent | 927824750200930ae816587b938462fbf0dd8581 (diff) | |
| download | bcm5719-llvm-13042a4a4a4c612e8f9e2ece59dbe719b2a3ecd5.tar.gz bcm5719-llvm-13042a4a4a4c612e8f9e2ece59dbe719b2a3ecd5.zip | |
Use only one constructor for CXXMethodDecl. Keep initialization stuff into one place.
llvm-svn: 58902
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/DeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index b2878b667aa..d008544074f 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/lib/AST/DeclCXX.cpp @@ -117,7 +117,7 @@ CXXMethodDecl::Create(ASTContext &C, CXXRecordDecl *RD, QualType T, bool isStatic, bool isInline, ScopedDecl *PrevDecl) { void *Mem = C.getAllocator().Allocate<CXXMethodDecl>(); - return new (Mem) CXXMethodDecl(RD, L, Id, T, isStatic, isInline, PrevDecl); + return new (Mem) CXXMethodDecl(CXXMethod, RD, L, Id, T, isStatic, isInline, PrevDecl); } QualType CXXMethodDecl::getThisType(ASTContext &C) const { |

