forked from OSchip/llvm-project
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:
parent
77dfde0ba3
commit
962070d49c
|
@ -2691,7 +2691,7 @@ static MultiInitializer CreateMultiInitializer(SmallVectorImpl<Expr*> &Args,
|
||||||
// the MultiInitializer.
|
// the MultiInitializer.
|
||||||
if (Args.size() == 1 && isa<InitListExpr>(Args[0]))
|
if (Args.size() == 1 && isa<InitListExpr>(Args[0]))
|
||||||
return MultiInitializer(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());
|
Args.size(), Init->getRParenLoc());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue