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

Sebastian Redl sebastian.redl at getdesigned.at
Mon Oct 17 09:53:50 PDT 2011


Author: cornedbee
Date: Mon Oct 17 11:53:50 2011
New Revision: 142192

URL: http://llvm.org/viewvc/llvm-project?rev=142192&view=rev
Log:
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.

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=142192&r1=142191&r2=142192&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplateInstantiateDecl.cpp Mon Oct 17 11:53:50 2011
@@ -2691,7 +2691,7 @@
   // 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());
 }
 





More information about the cfe-commits mailing list