From 962070d49c34c8a17c99e197f1c349190113eb34 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Mon, 17 Oct 2011 16:53:50 +0000 Subject: [PATCH] Revert r142142: "Make a C-style cast a const-cast, to suppress a GCC warning." Richard already fixed the underlying issue, so the cast was superfluous. llvm-svn: 142192 --- clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index 7dd36c05c373..02a05d518251 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -2691,7 +2691,7 @@ static MultiInitializer CreateMultiInitializer(SmallVectorImpl &Args, // the MultiInitializer. if (Args.size() == 1 && isa(Args[0])) return MultiInitializer(Args[0]); - return MultiInitializer(Init->getLParenLoc(), const_cast(Args.data()), + return MultiInitializer(Init->getLParenLoc(), Args.data(), Args.size(), Init->getRParenLoc()); }