From: Argyrios Kyrtzidis Date: Fri, 11 Jan 2013 22:29:49 +0000 (+0000) Subject: [PCH] Make the const_cast explicit to silence a compiler warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8b61cfc0c9233b6983ad9ed052900800e7613d9;p=clang [PCH] Make the const_cast explicit to silence a compiler warning. Patch by David Greene. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172262 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index f32d53fd8a..a4436d1671 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/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); }