mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-23 17:48:03 +00:00
[ELF] Use the correct cast.
llvm-svn: 172264
This commit is contained in:
parent
039fac0347
commit
2a5763cd86
@ -2158,8 +2158,7 @@ void ELFExecutableWriter<target_endianness, max_align, is64Bits>
|
||||
if ((*si)->kind() !=
|
||||
Chunk<target_endianness, max_align, is64Bits>::K_ELFSection)
|
||||
continue;
|
||||
section =
|
||||
llvm::dyn_cast<Section<target_endianness, max_align, is64Bits>>(*si);
|
||||
section = cast<Section<target_endianness, max_align, is64Bits>>(*si);
|
||||
for (auto ai = section->atoms_begin(); ai != section->atoms_end(); ++ai) {
|
||||
_atomToAddressMap[ai->first] = (ai)->second.second;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user