diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-20 00:37:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-20 00:37:55 +0000 |
commit | 60952f94cf67ddb566600434857cad7a48264c3b (patch) | |
tree | 87f9620c3044ac5aa104b63960d0acdc815152dd /lib/CodeGen/CGObjCMac.cpp | |
parent | 91636d6c4c07fd2edf19a510b02c6e793a28741f (diff) |
Remove non-const form of lookupFieldDeclForIvar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index e04f723b1d..e92796b5ba 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -2400,7 +2400,8 @@ llvm::Value *CGObjCMac::EmitIvarOffset(CodeGen::CodeGenFunction &CGF, ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) { const llvm::StructLayout *Layout = GetInterfaceDeclStructLayout(Interface); - FieldDecl *Field = Interface->lookupFieldDeclForIvar(CGM.getContext(), Ivar); + const FieldDecl *Field = + Interface->lookupFieldDeclForIvar(CGM.getContext(), Ivar); uint64_t Offset = GetIvarBaseOffset(Layout, Field); return llvm::ConstantInt::get( CGM.getTypes().ConvertType(CGM.getContext().LongTy), |