summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2017-08-25 18:24:20 +0000
committerFaisal Vali <faisalv@yahoo.com>2017-08-25 18:24:20 +0000
commitf241b0dcd65ffe34bdd891a20e0c0918de19d099 (patch)
treee160d6cec627ffed1ac173753367eb47820cf3b9 /clang/lib/Sema/SemaTemplate.cpp
parentfd9fad9e0227cb3cd387862c5d6b9abecbb87904 (diff)
downloadbcm5719-llvm-f241b0dcd65ffe34bdd891a20e0c0918de19d099.tar.gz
bcm5719-llvm-f241b0dcd65ffe34bdd891a20e0c0918de19d099.zip
[NFC] Remove a cstyle cast and replace some uses of Decl with NamedDecl during the processing of TemplateParameterLists.
llvm-svn: 311788
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index e9b38551683..1fcc79403f8 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -1080,7 +1080,7 @@ Sema::ActOnTemplateParameterList(unsigned Depth,
SourceLocation ExportLoc,
SourceLocation TemplateLoc,
SourceLocation LAngleLoc,
- ArrayRef<Decl *> Params,
+ ArrayRef<NamedDecl *> Params,
SourceLocation RAngleLoc,
Expr *RequiresClause) {
if (ExportLoc.isValid())
@@ -1088,7 +1088,7 @@ Sema::ActOnTemplateParameterList(unsigned Depth,
return TemplateParameterList::Create(
Context, TemplateLoc, LAngleLoc,
- llvm::makeArrayRef((NamedDecl *const *)Params.data(), Params.size()),
+ llvm::makeArrayRef(Params.data(), Params.size()),
RAngleLoc, RequiresClause);
}
OpenPOWER on IntegriCloud