Fix Casting

Make the const_cast explicit to silence a compiler warning.

llvm-svn: 172560
This commit is contained in:
David Greene 2013-01-15 22:09:43 +00:00
parent 0a528db95d
commit bae0e356b6
1 changed files with 1 additions and 1 deletions

View File

@ -1552,7 +1552,7 @@ void ASTWriter::WriteHeaderSearch(const HeaderSearch &HS, StringRef isysroot) {
// 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