summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-20 00:37:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-20 00:37:55 +0000
commit5d5dbb17540f2ba79381e628e1e4e7ae70c4b0ea (patch)
tree7b6a145bed62a0f614e0485028e7cce5aef3ef6f /clang/lib/CodeGen/CGObjCMac.cpp
parentae03226bc6ec06927cbd91f59817d09876a8f301 (diff)
downloadbcm5719-llvm-5d5dbb17540f2ba79381e628e1e4e7ae70c4b0ea.tar.gz
bcm5719-llvm-5d5dbb17540f2ba79381e628e1e4e7ae70c4b0ea.zip
Remove non-const form of lookupFieldDeclForIvar.
llvm-svn: 69563
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index e04f723b1d7..e92796b5ba8 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/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),
OpenPOWER on IntegriCloud