diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-31 08:31:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-31 08:31:13 +0000 |
commit | da04639a40e01d8d2ee891c075b271fd272d3d53 (patch) | |
tree | 9b6c8e4338606f941b427d97c723b069e0bc7a86 /lib/AST/ASTContext.cpp | |
parent | a3d2524e701b40b2c0cb3688017f153fd1d36bfe (diff) |
add a const version of the lookupFieldDeclForIvar method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 18a3a4221a..2e350c8502 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -650,9 +650,7 @@ const RecordDecl *ASTContext::addRecordToClass(const ObjCInterfaceDecl *D) void ASTContext::setFieldDecl(const ObjCInterfaceDecl *OI, const ObjCIvarDecl *Ivar, const ObjCIvarRefExpr *MRef) { - FieldDecl *FD = (const_cast<ObjCInterfaceDecl *>(OI))-> - lookupFieldDeclForIvar(*this, Ivar); - ASTFieldForIvarRef[MRef] = FD; + ASTFieldForIvarRef[MRef] = OI->lookupFieldDeclForIvar(*this, Ivar); } /// getASTObjcInterfaceLayout - Get or compute information about the layout of |