summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2013-01-15 22:09:43 +0000
committerDavid Greene <greened@obbligato.org>2013-01-15 22:09:43 +0000
commitbae0e356b638eecf681809acb897354dd293aa14 (patch)
treeabf4914daceb2358ff9ef0c59ca1e6a530e9dfd4 /clang/lib/Serialization/ASTWriter.cpp
parent0a528db95d81bbc6d118e5d3fd752e52923547a1 (diff)
downloadbcm5719-llvm-bae0e356b638eecf681809acb897354dd293aa14.tar.gz
bcm5719-llvm-bae0e356b638eecf681809acb897354dd293aa14.zip
Fix Casting
Make the const_cast explicit to silence a compiler warning. llvm-svn: 172560
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index d4b0367cac6..af736a4048a 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud