aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-03-20 22:55:03 +0000
committerNico Weber <nicolasweber@gmx.de>2019-03-20 22:55:03 +0000
commit0fd00a581d929c3caa2e92fbd06cdc1ae88fa457 (patch)
treef157e24fca60d7cdeb37b2cb5871023c2a8e6fd2 /llvm/lib/Object/ObjectFile.cpp
parentce3d67009718c7d124bdf540ac830c17d689645b (diff)
downloadllvm-0fd00a581d929c3caa2e92fbd06cdc1ae88fa457.zip
llvm-0fd00a581d929c3caa2e92fbd06cdc1ae88fa457.tar.gz
llvm-0fd00a581d929c3caa2e92fbd06cdc1ae88fa457.tar.bz2
libc++/win: Make once_flag have the same size as a pointer.
`unsigned long` is 32-bit on 32-bit systems and 64-bit on 64-bit systems on LP64 systems -- which most Unix systems are, but Windows isn't. Windows is LLP64, which means unsigned long is 32-bit even on 64-bit systems. pplwin.h contains static_assert(alignof(void *) == alignof(::std::once_flag), ...) which fails due to this problem. Instead of unsigned long, use uintptr_t, which consistently is 32-bit on 32-bit systems and 64-bit on 64-bit systems. No functional change except on 64-bit Windows. Differential Revision: https://reviews.llvm.org/D59607 llvm-svn: 356624
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions