diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-11 15:52:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-11 15:52:29 +0000 |
commit | 27cae7b01b2102ce06c355701987eafb5047a2c0 (patch) | |
tree | a6d045ed019eb30f916d34dea42785acfaadd5a8 /lib/CodeGen/MachineFunction.cpp | |
parent | cfd15cf7bfd17f9d9e1502761b5869dba2736005 (diff) |
The 32-bit displacement field in an x86 address is signed. Arrange for it
to be sign-extended when it is promoted to 64 bits for intermediate
offset calculations. The offset calculations are done as uint64_t so that
overflow conditions are well defined.
This fixes a problem which is currently hidden by the x86 AsmPrinter but
which was exposed by r58917 (which is temporarily reverted). See PR3027
for details.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions