From fdffdf39fcf036f1180473f4ed5a994f163eec1d Mon Sep 17 00:00:00 2001 From: zhijian Date: Mon, 19 Sep 2022 12:14:02 -0400 Subject: 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(0ul); --- llvm/lib/Object/XCOFFObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp') 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(&Sec); - return reinterpret_cast(0ul); + return uintptr_t(0); }; if (is64Bit()) DRI.p = GetSectionAddr(sections64()); -- cgit v1.1