diff options
author | David Greene <greened@obbligato.org> | 2013-01-15 22:09:43 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2013-01-15 22:09:43 +0000 |
commit | 644448393e5592563f5f53842e1b0c6299f31d6c (patch) | |
tree | 98ceb4919ff0b56d0a9f4383ddf18fe443b06da9 | |
parent | 5ba58a1b3cbe79497380e7ccecbe45c8bdd498c1 (diff) |
Fix Casting
Make the const_cast explicit to silence a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172560 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Serialization/ASTWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index d4b0367cac..af736a4048 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -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 |