[cfe-commits] r142142 - /cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sun Oct 16 11:19:00 PDT 2011


Author: cornedbee
Date: Sun Oct 16 13:18:59 2011
New Revision: 142142

URL: http://llvm.org/viewvc/llvm-project?rev=142142&view=rev
Log:
Make a C-style cast a const-cast, to suppress a GCC warning. I should fix the underlying issue eventually, but this interface will probably change anyway.

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=142142&r1=142141&r2=142142&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Sun Oct 16 13:18:59 2011
@@ -2691,7 +2691,7 @@
   // the MultiInitializer.
   if (Args.size() == 1 && isa<InitListExpr>(Args[0]))
     return MultiInitializer(Args[0]);
-  return MultiInitializer(Init->getLParenLoc(), Args.data(),
+  return MultiInitializer(Init->getLParenLoc(), const_cast<Expr**>(Args.data()),
                           Args.size(), Init->getRParenLoc());
 }
 





More information about the cfe-commits mailing list