From c57e503c4838eed0a43c21aef706917529e67867 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 11 Jan 2013 22:29:49 +0000 Subject: [PATCH] [PCH] Make the const_cast explicit to silence a compiler warning. Patch by David Greene. llvm-svn: 172262 --- clang/lib/Serialization/ASTReader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index f32d53fd8a7b..a4436d16716a 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -655,7 +655,8 @@ ASTDeclContextNameLookupTrait::ReadData(internal_key_type, unsigned DataLen) { using namespace clang::io; unsigned NumDecls = ReadUnalignedLE16(d); - LE32DeclID *Start = (LE32DeclID *)d; + LE32DeclID *Start = reinterpret_cast( + const_cast(d)); return std::make_pair(Start, Start + NumDecls); }