diff options
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index e1797665c93..1bbe08e38d4 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1010,8 +1010,8 @@ void ASTContext::setObjCImplementation(ObjCCategoryDecl *CatD, /// \brief Get the copy initialization expression of VarDecl,or NULL if /// none exists. -Expr *ASTContext::getBlockVarCopyInits(VarDecl*VD) { - llvm::DenseMap<VarDecl*, Expr*>::iterator +Expr *ASTContext::getBlockVarCopyInits(const VarDecl*VD) { + llvm::DenseMap<const VarDecl*, Expr*>::iterator I = BlockVarCopyInits.find(VD); return (I != BlockVarCopyInits.end()) ? cast<Expr>(I->second) : 0; } |