From cdf5f4aa7ba5c776bdd50a04603783c0d331e2dc Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 21 Aug 2009 23:58:43 +0000 Subject: Remove 'AnalysisContext::setDecl()', as we the Decl associated with an AnalysisContext should never change. Along the way, propagate some constness around. llvm-svn: 79701 --- clang/lib/Analysis/CheckObjCDealloc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Analysis/CheckObjCDealloc.cpp') diff --git a/clang/lib/Analysis/CheckObjCDealloc.cpp b/clang/lib/Analysis/CheckObjCDealloc.cpp index 7e6023a1f5a..3392fcfdc3a 100644 --- a/clang/lib/Analysis/CheckObjCDealloc.cpp +++ b/clang/lib/Analysis/CheckObjCDealloc.cpp @@ -87,13 +87,13 @@ static bool scan_ivar_release(Stmt* S, ObjCIvarDecl* ID, return false; } -void clang::CheckObjCDealloc(ObjCImplementationDecl* D, +void clang::CheckObjCDealloc(const ObjCImplementationDecl* D, const LangOptions& LOpts, BugReporter& BR) { assert (LOpts.getGCMode() != LangOptions::GCOnly); ASTContext& Ctx = BR.getContext(); - ObjCInterfaceDecl* ID = D->getClassInterface(); + const ObjCInterfaceDecl* ID = D->getClassInterface(); // Does the class contain any ivars that are pointers (or id<...>)? // If not, skip the check entirely. -- cgit v1.2.3