diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-02-09 22:45:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-02-09 22:45:21 +0000 |
commit | a4dc693368e7af4001fe88076bdf4efd440022fa (patch) | |
tree | 54f47c053a43abaab8b129937600fa006938e04a /lib/CodeGen | |
parent | 3e78b19e51034dd27c6e0d811522148345e299e4 (diff) |
Remove evil const_cast that's not needed anymore.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 0ac32cca06..1b95547292 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4158,9 +4158,7 @@ llvm::Constant *CGObjCCommonMac::GetMethodVarType(const FieldDecl *Field) { llvm::Constant *CGObjCCommonMac::GetMethodVarType(const ObjCMethodDecl *D, bool Extended) { std::string TypeStr; - if (CGM.getContext().getObjCEncodingForMethodDecl( - const_cast<ObjCMethodDecl*>(D), - TypeStr, Extended)) + if (CGM.getContext().getObjCEncodingForMethodDecl(D, TypeStr, Extended)) return 0; llvm::GlobalVariable *&Entry = MethodVarTypes[TypeStr]; |