forked from OSchip/llvm-project
[PCH] Make the const_cast explicit to silence a compiler warning.
Patch by David Greene. llvm-svn: 172262
This commit is contained in:
parent
49d9d02947
commit
c57e503c48
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue