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 | 0bd76b79d3f9f5dd78402ffb9022ad774b2edda0 (patch) | |
tree | a6d045ed019eb30f916d34dea42785acfaadd5a8 /lib/Target/Alpha/AlphaAsmPrinter.cpp | |
parent | b2a6bf80fe62dac82c519103bbf4cf74bfa6ee6d (diff) | |
download | external_llvm-0bd76b79d3f9f5dd78402ffb9022ad774b2edda0.zip external_llvm-0bd76b79d3f9f5dd78402ffb9022ad774b2edda0.tar.gz external_llvm-0bd76b79d3f9f5dd78402ffb9022ad774b2edda0.tar.bz2 |
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/Target/Alpha/AlphaAsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions