[llvm-commits] [lld] r172264 - /lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Fri Jan 11 14:39:32 PST 2013
Author: mspencer
Date: Fri Jan 11 16:39:31 2013
New Revision: 172264
URL: http://llvm.org/viewvc/llvm-project?rev=172264&view=rev
Log:
[ELF] Use the correct cast.
Modified:
lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp?rev=172264&r1=172263&r2=172264&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp Fri Jan 11 16:39:31 2013
@@ -2158,8 +2158,7 @@
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;
}
More information about the llvm-commits
mailing list