forked from OSchip/llvm-project
fixed a compiler error as description in
https://lab.llvm.org/buildbot/#/builders/216/builds/9977 XCOFFOtFile.cpp: error C3487: 'unsigned long': all return expressions must deduce to the same type: previously it was 'uintptr_t'
This commit is contained in:
parent
e13b273d63
commit
a3aab98ef4
|
@ -802,7 +802,7 @@ XCOFFObjectFile::getSectionByType(XCOFF::SectionTypeFlags SectType) const {
|
|||
for (const auto &Sec : Sections)
|
||||
if (Sec.getSectionType() == SectType)
|
||||
return reinterpret_cast<uintptr_t>(&Sec);
|
||||
return 0ul;
|
||||
return reinterpret_cast<uintptr_t>(0ul);
|
||||
};
|
||||
if (is64Bit())
|
||||
DRI.p = GetSectionAddr(sections64());
|
||||
|
|
Loading…
Reference in New Issue