diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-02-25 00:51:08 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-02-25 00:51:08 +0000 |
commit | 0c68ed006d4f38c3cdcab6a565aa3e208015895f (patch) | |
tree | bdfa71325f919895771a4ee47b05fda7de02a047 /llvm/lib/CodeGen/AllocationOrder.h | |
parent | 4d0779a754462fb7032c020c7cb5d72fb5020f82 (diff) | |
download | bcm5719-llvm-0c68ed006d4f38c3cdcab6a565aa3e208015895f.tar.gz bcm5719-llvm-0c68ed006d4f38c3cdcab6a565aa3e208015895f.zip |
Chris Jefferson spotted a problem with messages_base::catalog while getting libc++ to work on boost. The standard says this type must be an int. But this type is the key returned by the OS facility catopen. On OS X the type returned by catopen is void*, which doesn't fit into an int on 64 bit platforms. Chris suggested using ptrdiff_t instead of void*. It still isn't compliant with the standard, but chances are that this change will fix what is ailing boost. Chris also supplied the algorithm for distinguishing high-order pointers from error conditions. Thanks Chris.
llvm-svn: 126462
Diffstat (limited to 'llvm/lib/CodeGen/AllocationOrder.h')
0 files changed, 0 insertions, 0 deletions