Use reinterpret_cast instead of const_cast and C-style cast.
llvm-svn: 238786
This commit is contained in:
		
							parent
							
								
									c1e029e93d
								
							
						
					
					
						commit
						1db1ef9ab4
					
				| 
						 | 
					@ -202,7 +202,7 @@ SymbolBody *ObjectFile::createSymbolBody(StringRef Name, COFFSymbolRef Sym,
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if (IsFirst && AuxP) {
 | 
					  if (IsFirst && AuxP) {
 | 
				
			||||||
    if (Chunk *C = SparseChunks[Sym.getSectionNumber()]) {
 | 
					    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 =
 | 
					      auto *Parent =
 | 
				
			||||||
          (SectionChunk *)(SparseChunks[Aux->getNumber(Sym.isBigObj())]);
 | 
					          (SectionChunk *)(SparseChunks[Aux->getNumber(Sym.isBigObj())]);
 | 
				
			||||||
      if (Parent)
 | 
					      if (Parent)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue