diff options
author | zhijian <zhijian@ca.ibm.com> | 2022-09-19 11:57:45 -0400 |
---|---|---|
committer | zhijian <zhijian@ca.ibm.com> | 2022-09-19 11:57:45 -0400 |
commit | a3aab98ef49990178714be894d8d3e6249e4dc1b (patch) | |
tree | 47c6eff704b81a367d1a2c7bb611ab3b16175463 /llvm/lib/Object/XCOFFObjectFile.cpp | |
parent | e13b273d63d241bacb73d79671bde3a7b4649b2b (diff) | |
download | llvm-a3aab98ef49990178714be894d8d3e6249e4dc1b.zip llvm-a3aab98ef49990178714be894d8d3e6249e4dc1b.tar.gz llvm-a3aab98ef49990178714be894d8d3e6249e4dc1b.tar.bz2 |
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'
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/XCOFFObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp index 8532012..23055b3 100644 --- a/llvm/lib/Object/XCOFFObjectFile.cpp +++ b/llvm/lib/Object/XCOFFObjectFile.cpp @@ -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()); |