[lld] r203992 - [PECOFF] Data type of SectionNumber is now unsigned (r203986).
Rui Ueyama
ruiu at google.com
Fri Mar 14 17:39:12 PDT 2014
Author: ruiu
Date: Fri Mar 14 19:39:12 2014
New Revision: 203992
URL: http://llvm.org/viewvc/llvm-project?rev=203992&view=rev
Log:
[PECOFF] Data type of SectionNumber is now unsigned (r203986).
So we don't need static_cast's to convert it from signed to unsigned.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp?rev=203992&r1=203991&r2=203992&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp Fri Mar 14 19:39:12 2014
@@ -477,8 +477,7 @@ error_code FileCOFF::createDefinedSymbol
continue;
const coff_section *sec;
- if (error_code ec =
- _obj->getSection(static_cast<uint16_t>(sym->SectionNumber), sec))
+ if (error_code ec = _obj->getSection(sym->SectionNumber, sec))
return ec;
assert(sec && "SectionIndex > 0, Sec must be non-null!");
@@ -527,8 +526,7 @@ error_code FileCOFF::cacheSectionAttribu
continue;
const coff_section *sec;
- if (error_code ec =
- _obj->getSection(static_cast<uint16_t>(sym->SectionNumber), sec))
+ if (error_code ec = _obj->getSection(sym->SectionNumber, sec))
return ec;
if (_merge.count(sec))
More information about the llvm-commits
mailing list