[PATCH] D91520: [MachO] Fix enum-int mismatch warning
Mikael Holmén via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 28 08:40:28 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG496fb70b141c: [MachO] Fix enum-int mismatch warning (authored by ehjogab, committed by uabelho).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91520/new/
https://reviews.llvm.org/D91520
Files:
lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
Index: lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
===================================================================
--- lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
+++ lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
@@ -1561,7 +1561,7 @@
uint32_t Util::fileFlags() {
// FIXME: these need to determined at runtime.
if (_ctx.outputMachOType() == MH_OBJECT) {
- return _subsectionsViaSymbols ? MH_SUBSECTIONS_VIA_SYMBOLS : 0;
+ return _subsectionsViaSymbols ? (uint32_t)MH_SUBSECTIONS_VIA_SYMBOLS : 0;
} else {
uint32_t flags = MH_DYLDLINK;
if (!_ctx.useFlatNamespace())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91520.313859.patch
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201228/d36b718c/attachment.bin>
More information about the llvm-commits
mailing list