diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2013-12-09 10:44:32 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2013-12-09 10:44:32 +0000 |
| commit | 24df0f449fa6723b709807f5c096311b13b4665c (patch) | |
| tree | d9f21245f4b3a01b537b220b47a31e41527e046a /lib/CodeGen/CodeGenModule.h | |
| parent | c8eb003596940a4166bd86631f8ed32580b55b2c (diff) | |
| download | clang-24df0f449fa6723b709807f5c096311b13b4665c.tar.gz clang-24df0f449fa6723b709807f5c096311b13b4665c.tar.bz2 clang-24df0f449fa6723b709807f5c096311b13b4665c.tar.xz | |
[-cxx-abi microsoft] Mangle large integral constants correctly
Testing has revealed that large integral constants (i.e. > INT64_MAX)
are always mangled as-if they are negative, even in places where it
would not make sense for them to be negative (like non-type template
parameters of type unsigned long long).
To address this, we change the way we model number mangling: always
mangle as-if our number is an int64_t. This should result in correct
results when we have large unsigned numbers.
N.B. Bizarrely, things that are 32-bit displacements like vbptr offsets
are mangled as-if they are unsigned 32-bit numbers. This is a pretty
egregious waste of space, it would be a 4x savings if we could mangle it
like a signed 32-bit number. Instead, we explicitly cast these
displacements to uint32_t and let the mangler proceed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions
