diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-19 16:39:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-19 16:39:44 +0000 |
commit | cb421fa690da545b58a720abe5f1c49b166dbde7 (patch) | |
tree | 83aec2feca44552c955bfcd70aabb3cfc36d9563 /lib/CodeGen/CGObjCGNU.cpp | |
parent | cb7464ab402d057849dda9749d62a62d86c35ab8 (diff) |
Fix -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index fe99c6ef33..36162f7e5e 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -2057,7 +2057,8 @@ llvm::GlobalVariable *CGObjCGNU::ObjCIvarOffsetVariable( if (!IvarOffsetPointer) { uint64_t Offset; if (ObjCImplementationDecl *OID = - CGM.getContext().getObjCImplementation((ObjCInterfaceDecl*)(ID))) + CGM.getContext().getObjCImplementation( + const_cast<ObjCInterfaceDecl *>(ID))) Offset = ComputeIvarBaseOffset(CGM, OID, Ivar); else Offset = ComputeIvarBaseOffset(CGM, ID, Ivar); |