[lld] d767de4 - [lld-macho] Fix PAGEZERO=4GB errors on Windows by ensuring enum is uint64_t
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 15:24:42 PDT 2020
Author: Jez Ng
Date: 2020-06-02T15:24:31-07:00
New Revision: d767de44bf9527cb5058f5fe16aac2f23c21977c
URL: https://github.com/llvm/llvm-project/commit/d767de44bf9527cb5058f5fe16aac2f23c21977c
DIFF: https://github.com/llvm/llvm-project/commit/d767de44bf9527cb5058f5fe16aac2f23c21977c.diff
LOG: [lld-macho] Fix PAGEZERO=4GB errors on Windows by ensuring enum is uint64_t
It appears that MSVC doesn't resize the enum properly to fit the
constants.
Added:
Modified:
lld/MachO/Target.h
Removed:
################################################################################
diff --git a/lld/MachO/Target.h b/lld/MachO/Target.h
index 8b7908a9e4ac..b677878504fe 100644
--- a/lld/MachO/Target.h
+++ b/lld/MachO/Target.h
@@ -22,7 +22,7 @@ class DylibSymbol;
class InputSection;
struct Reloc;
-enum {
+enum : uint64_t {
// We are currently only supporting 64-bit targets since macOS and iOS are
// deprecating 32-bit apps.
WordSize = 8,
More information about the llvm-commits
mailing list