summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-12-02 17:02:11 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-12-02 17:02:11 +0000
commit50198098b95d30dc027ac4f89e77a727b3a25635 (patch)
tree1875532a6823644b38abf9b54591ade6b53b0383 /clang/lib/AST/ASTContext.cpp
parent1596c4531b3950f4c883013cb51182ad40884633 (diff)
downloadbcm5719-llvm-50198098b95d30dc027ac4f89e77a727b3a25635.tar.gz
bcm5719-llvm-50198098b95d30dc027ac4f89e77a727b3a25635.zip
IR Gen. part of API support for __block cxx
objects imported into blocks. //rdar://8594790. Will have a test case coming (as well as one sent to llvm test suite). llvm-svn: 120713
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp4
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;
}
OpenPOWER on IntegriCloud