From 01a7598561561c6d34ba0683a550ed6326fa8f98 Mon Sep 17 00:00:00 2001 From: Nikola Smiljanic Date: Thu, 29 May 2014 10:55:11 +0000 Subject: Refactoring. Remove release and take methods from ActionResult. Rename takeAs to getAs. llvm-svn: 209800 --- clang/lib/Sema/SemaObjCProperty.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Sema/SemaObjCProperty.cpp') diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index bc982997411..5dea07b71e7 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -1158,7 +1158,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, /*NRVO=*/false), PropertyDiagLoc, Owned(IvarRefExpr)); if (!Res.isInvalid()) { - Expr *ResExpr = Res.takeAs(); + Expr *ResExpr = Res.getAs(); if (ResExpr) ResExpr = MaybeCreateExprWithCleanups(ResExpr); PIDecl->setGetterCXXConstructor(ResExpr); @@ -1212,7 +1212,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, BO_Assign, lhs, rhs); if (property->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_atomic) { - Expr *callExpr = Res.takeAs(); + Expr *callExpr = Res.getAs(); if (const CXXOperatorCallExpr *CXXCE = dyn_cast_or_null(callExpr)) if (const FunctionDecl *FuncDecl = CXXCE->getDirectCallee()) @@ -1225,7 +1225,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, diag::note_callee_decl) << FuncDecl; } } - PIDecl->setSetterCXXAssignment(Res.takeAs()); + PIDecl->setSetterCXXAssignment(Res.getAs()); } } -- cgit v1.2.3