]> granicus.if.org Git - clang/commitdiff
Silence a -Wcast-qual warning; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 7 Jul 2015 13:22:55 +0000 (13:22 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 7 Jul 2015 13:22:55 +0000 (13:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241581 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaType.cpp

index 1360c2cf28a819118e8391670300bb7c3892e753..1347efcc74c90fc0176f743b75ef2ecd8a7fcc81 100644 (file)
@@ -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;