diff options
author | zhijian <zhijian@ca.ibm.com> | 2022-09-19 12:14:02 -0400 |
---|---|---|
committer | zhijian <zhijian@ca.ibm.com> | 2022-09-19 12:14:02 -0400 |
commit | fdffdf39fcf036f1180473f4ed5a994f163eec1d (patch) | |
tree | 8a67d41214729fbfb9afc309363d53d05e23eebd /llvm/lib/Object/XCOFFObjectFile.cpp | |
parent | f02ff5348f50725b12174a82bc94aa445cbf1689 (diff) | |
download | llvm-fdffdf39fcf036f1180473f4ed5a994f163eec1d.zip llvm-fdffdf39fcf036f1180473f4ed5a994f163eec1d.tar.gz llvm-fdffdf39fcf036f1180473f4ed5a994f163eec1d.tar.bz2 |
fixed a compiler error as description in
https://lab.llvm.org/buildbot/#/builders/174/builds/13432
XCOFFObjectFile.cpp:805:12: error: reinterpret_cast from 'unsigned long' to 'uintptr_t' (aka 'unsigned int') is not allowed
return reinterpret_cast<uintptr_t>(0ul);
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 23055b3..8ed61a1 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 reinterpret_cast<uintptr_t>(0ul); + return uintptr_t(0); }; if (is64Bit()) DRI.p = GetSectionAddr(sections64()); |