diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-01-14 12:00:12 +0000 | 
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-01-14 12:00:12 +0000 | 
| commit | 998c9102625acb7dc42af7b082e8c90a81218279 (patch) | |
| tree | 3016518284f1b1a7125cb65490dbcffdef2cf653 /llvm/lib/CodeGen/LiveRegMatrix.cpp | |
| parent | 1080666e80056b2453b5400553688a37da75b441 (diff) | |
| download | bcm5719-llvm-998c9102625acb7dc42af7b082e8c90a81218279.tar.gz bcm5719-llvm-998c9102625acb7dc42af7b082e8c90a81218279.zip | |
[mips] Handle transparent unions correctly.
Summary:
This fixes MultiSource/Applications/lemon on big-endian N32 by correcting the
handling of the argument to wait(). glibc defines it as a transparent union of
void* and int*. Such unions are passed according to the rules of the first
member so the argument must be passed as if it were a void* (sign extended from
i32 to i64) and not as a union (shifted to the upper bits of an i64).
wait() already behaves correctly on big-endian O32 and N64 since the union is
already the same size as an argument slot.
Reviewers: atanasyan
Reviewed By: atanasyan
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D6963
llvm-svn: 225981
Diffstat (limited to 'llvm/lib/CodeGen/LiveRegMatrix.cpp')
0 files changed, 0 insertions, 0 deletions

