From 03c4848bf4eab62311d277400afd8807eab05cd3 Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 2 Feb 2010 09:10:11 +0000 Subject: Mark dtors for parameter variables and eliminate some redundant type munging. llvm-svn: 95079 --- clang/lib/Sema/Sema.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema/Sema.h') diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index e49ce733198..d971b9caebf 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -1932,7 +1932,7 @@ public: /// FinalizeVarWithDestructor - Prepare for calling destructor on the /// constructed variable. - void FinalizeVarWithDestructor(VarDecl *VD, QualType DeclInitType); + void FinalizeVarWithDestructor(VarDecl *VD, const RecordType *DeclInitType); /// DefineImplicitDefaultConstructor - Checks for feasibility of /// defining this constructor as the default constructor. @@ -2417,7 +2417,7 @@ public: AccessSpecifier Access); bool CheckConstructorAccess(SourceLocation Loc, CXXConstructorDecl *D, AccessSpecifier Access); - bool CheckDestructorAccess(SourceLocation Loc, QualType T); + bool CheckDestructorAccess(SourceLocation Loc, const RecordType *Record); bool CheckMemberOperatorAccess(SourceLocation Loc, Expr *ObjectExpr, NamedDecl *D, AccessSpecifier Access); bool CheckAccess(const LookupResult &R, NamedDecl *D, AccessSpecifier Access); -- cgit v1.2.3