summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-07-07 13:22:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-07-07 13:22:55 +0000
commita0ea996da48b27769070aab334d7af34d8b0e327 (patch)
tree3f6bf2116fa9077a2d035eac2d1defe56fdfa9e4 /clang/lib/Sema
parent385a8c02029237876babe901dafdf9725ab30b60 (diff)
downloadbcm5719-llvm-a0ea996da48b27769070aab334d7af34d8b0e327.tar.gz
bcm5719-llvm-a0ea996da48b27769070aab334d7af34d8b0e327.zip
Silence a -Wcast-qual warning; NFC.
llvm-svn: 241581
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaType.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index 1360c2cf28a..1347efcc74c 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -1094,17 +1094,13 @@ TypeResult Sema::actOnObjCTypeArgsAndProtocolQualifiers(
// Build the object type.
QualType Result = BuildObjCObjectType(
- T,
- BaseTypeInfo->getTypeLoc().getSourceRange().getBegin(),
- TypeArgsLAngleLoc,
- ActualTypeArgInfos,
- TypeArgsRAngleLoc,
- ProtocolLAngleLoc,
- llvm::makeArrayRef((ObjCProtocolDecl **)Protocols.data(),
- Protocols.size()),
- ProtocolLocs,
- ProtocolRAngleLoc,
- /*FailOnError=*/false);
+ T, BaseTypeInfo->getTypeLoc().getSourceRange().getBegin(),
+ TypeArgsLAngleLoc, ActualTypeArgInfos, TypeArgsRAngleLoc,
+ ProtocolLAngleLoc,
+ llvm::makeArrayRef((ObjCProtocolDecl * const *)Protocols.data(),
+ Protocols.size()),
+ ProtocolLocs, ProtocolRAngleLoc,
+ /*FailOnError=*/false);
if (Result == T)
return BaseType;
OpenPOWER on IntegriCloud