summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-19 16:39:44 +0000
committerDan Gohman <gohman@apple.com>2010-04-19 16:39:44 +0000
commit145f3f1e83932a751ae434bafa42333d4cb2c157 (patch)
tree41277159366ba04f17145ce4e62d2377e2e046ff /clang/lib/AST/ASTContext.cpp
parent3457061a66e23a884a34ff4274f01f96ba4867e9 (diff)
downloadbcm5719-llvm-145f3f1e83932a751ae434bafa42333d4cb2c157.tar.gz
bcm5719-llvm-145f3f1e83932a751ae434bafa42333d4cb2c157.zip
Fix -Wcast-qual warnings.
llvm-svn: 101786
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 68620dc346b..a3c08d56b04 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -4194,7 +4194,8 @@ void getIntersectionOfProtocols(ASTContext &Context,
unsigned RHSNumProtocols = RHS->getNumProtocols();
if (RHSNumProtocols > 0) {
- ObjCProtocolDecl **RHSProtocols = (ObjCProtocolDecl **)RHS->qual_begin();
+ ObjCProtocolDecl **RHSProtocols =
+ const_cast<ObjCProtocolDecl **>(RHS->qual_begin());
for (unsigned i = 0; i < RHSNumProtocols; ++i)
if (InheritedProtocolSet.count(RHSProtocols[i]))
IntersectionOfProtocols.push_back(RHSProtocols[i]);
OpenPOWER on IntegriCloud