[cfe-commits] r141496 - /cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Oct 8 09:15:07 PDT 2011
Author: d0k
Date: Sat Oct 8 11:15:07 2011
New Revision: 141496
URL: http://llvm.org/viewvc/llvm-project?rev=141496&view=rev
Log:
Silence a warning about casting away constness.
Modified:
cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp?rev=141496&r1=141495&r2=141496&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Sat Oct 8 11:15:07 2011
@@ -2672,16 +2672,15 @@
}
}
-static MultiInitializer CreateMultiInitializer(
- const SmallVectorImpl<Expr*> &Args,
- const CXXCtorInitializer *Init) {
+static MultiInitializer CreateMultiInitializer(SmallVectorImpl<Expr*> &Args,
+ const CXXCtorInitializer *Init) {
// FIXME: This is a hack that will do slightly the wrong thing for an
// initializer of the form foo({...}).
// The right thing to do would be to modify InstantiateInitializer to create
// the MultiInitializer.
if (Args.size() == 1 && isa<InitListExpr>(Args[0]))
return MultiInitializer(Args[0]);
- return MultiInitializer(Init->getLParenLoc(), (Expr **)Args.data(),
+ return MultiInitializer(Init->getLParenLoc(), Args.data(),
Args.size(), Init->getRParenLoc());
}
More information about the cfe-commits
mailing list