summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-06-05 03:00:13 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-06-05 03:00:13 +0000
commit7e9f52f1faacf5505476418411127c5b16e07533 (patch)
tree49544948c1031df0b6c1089a73cb2c580ecf2fad /lib/CodeGen/CGExprComplex.cpp
parent90f9ec0dff7592c635e719909d288b5de04d224b (diff)
downloadclang-7e9f52f1faacf5505476418411127c5b16e07533.tar.gz
clang-7e9f52f1faacf5505476418411127c5b16e07533.tar.bz2
clang-7e9f52f1faacf5505476418411127c5b16e07533.tar.xz
Fix CoerceIntOrPtrToIntOrPtr on big-endian targets.
Type coercion for argument passing is equivalent to storing the source type and loading the destination type from the same pointer. On big-endian targets, this means that the high bits of integers are preserved. This patch fixes the CoerceIntOrPtrToIntOrPtr() function on big-endian targets by inserting the required shift instructions to preserve the high bits instead of the low bits. This is used by SparcABIInfo when passing small structs in the high bits of registers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions