summaryrefslogtreecommitdiffstats
path: root/lld/COFF/InputFiles.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-06-01 21:49:21 +0000
committerRui Ueyama <ruiu@google.com>2015-06-01 21:49:21 +0000
commit1db1ef9ab44519b0e323ececa1f22c20c78984a1 (patch)
tree3301e8b05fb02ac86390765bce7364507a2dfbec /lld/COFF/InputFiles.cpp
parentc1e029e93da007649285aea470d7f5b9acc4f753 (diff)
downloadbcm5719-llvm-1db1ef9ab44519b0e323ececa1f22c20c78984a1.tar.gz
bcm5719-llvm-1db1ef9ab44519b0e323ececa1f22c20c78984a1.zip
Use reinterpret_cast instead of const_cast and C-style cast.
llvm-svn: 238786
Diffstat (limited to 'lld/COFF/InputFiles.cpp')
-rw-r--r--lld/COFF/InputFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/InputFiles.cpp b/lld/COFF/InputFiles.cpp
index 8e771cea6b7..ec8e9f5412e 100644
--- a/lld/COFF/InputFiles.cpp
+++ b/lld/COFF/InputFiles.cpp
@@ -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)
OpenPOWER on IntegriCloud