Removed a slot in ObjCMemRegExpr used in
code gen which did not belong there.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61203 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 281b2cd..95f95ce 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -540,6 +540,16 @@
return RD;
}
+/// setFieldDecl - maps a field for the given Ivar reference node.
+//
+void ASTContext::setFieldDecl(const ObjCInterfaceDecl *OI,
+ const ObjCIvarDecl *Ivar,
+ const ObjCIvarRefExpr *MRef) {
+ FieldDecl *FD = (const_cast<ObjCInterfaceDecl *>(OI))->
+ lookupFieldDeclForIvar(*this, Ivar);
+ ASTFieldForIvarRef[MRef] = FD;
+}
+
/// getASTObjcInterfaceLayout - Get or compute information about the layout of
/// the specified Objective C, which indicates its size and ivar
/// position information.