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
This commit is contained in:
Sebastian Redl 2011-10-17 16:53:50 +00:00
parent 77dfde0ba3
commit 962070d49c
1 changed files with 1 additions and 1 deletions

View File

@ -2691,7 +2691,7 @@ static MultiInitializer CreateMultiInitializer(SmallVectorImpl<Expr*> &Args,
// the MultiInitializer.
if (Args.size() == 1 && isa<InitListExpr>(Args[0]))
return MultiInitializer(Args[0]);
return MultiInitializer(Init->getLParenLoc(), const_cast<Expr**>(Args.data()),
return MultiInitializer(Init->getLParenLoc(), Args.data(),
Args.size(), Init->getRParenLoc());
}