[PCH] Make the const_cast explicit to silence a compiler warning.

Patch by David Greene.

llvm-svn: 172262
This commit is contained in:
Argyrios Kyrtzidis 2013-01-11 22:29:49 +00:00
parent 49d9d02947
commit c57e503c48
1 changed files with 2 additions and 1 deletions

View File

@ -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<LE32DeclID *>(
const_cast<unsigned char *>(d));
return std::make_pair(Start, Start + NumDecls);
}