aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/XCOFFObjectFile.cpp
diff options
context:
space:
mode:
authorzhijian <zhijian@ca.ibm.com>2022-09-19 11:57:45 -0400
committerzhijian <zhijian@ca.ibm.com>2022-09-19 11:57:45 -0400
commita3aab98ef49990178714be894d8d3e6249e4dc1b (patch)
tree47c6eff704b81a367d1a2c7bb611ab3b16175463 /llvm/lib/Object/XCOFFObjectFile.cpp
parente13b273d63d241bacb73d79671bde3a7b4649b2b (diff)
downloadllvm-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.cpp2
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());