Use reinterpret_cast instead of const_cast and C-style cast.

llvm-svn: 238786
This commit is contained in:
Rui Ueyama 2015-06-01 21:49:21 +00:00
parent c1e029e93d
commit 1db1ef9ab4
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ SymbolBody *ObjectFile::createSymbolBody(StringRef Name, COFFSymbolRef Sym,
}
if (IsFirst && AuxP) {
if (Chunk *C = SparseChunks[Sym.getSectionNumber()]) {
auto *Aux = (coff_aux_section_definition *)const_cast<void *>(AuxP);
auto *Aux = reinterpret_cast<const coff_aux_section_definition *>(AuxP);
auto *Parent =
(SectionChunk *)(SparseChunks[Aux->getNumber(Sym.isBigObj())]);
if (Parent)