[cfe-commits] r172560 - /cfe/trunk/lib/Serialization/ASTWriter.cpp

David Greene greened at obbligato.org
Tue Jan 15 14:09:43 PST 2013


Author: greened
Date: Tue Jan 15 16:09:43 2013
New Revision: 172560

URL: http://llvm.org/viewvc/llvm-project?rev=172560&view=rev
Log:
Fix Casting

Make the const_cast explicit to silence a compiler warning.

Modified:
    cfe/trunk/lib/Serialization/ASTWriter.cpp

Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=172560&r1=172559&r2=172560&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Tue Jan 15 16:09:43 2013
@@ -1552,7 +1552,7 @@
   
   // Free all of the strings we had to duplicate.
   for (unsigned I = 0, N = SavedStrings.size(); I != N; ++I)
-    free((void*)SavedStrings[I]);
+    free(const_cast<char *>(SavedStrings[I]));
 }
 
 /// \brief Writes the block containing the serialized form of the





More information about the cfe-commits mailing list