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:
zhijian 2022-09-19 11:57:45 -04:00
parent e13b273d63
commit a3aab98ef4
1 changed files with 1 additions and 1 deletions

View File

@ -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());