diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-01-13 10:47:00 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-01-13 10:47:00 +0000 |
commit | cdcb580d4e7760b7fd2b85fd647c7e5c3478ee99 (patch) | |
tree | 1742fac8aea86957c27bf98d1ca0d27517a17e74 /llvm/lib/IR/PassManager.cpp | |
parent | cdf8a71d3698feb31b9ef86b16f8b80ceb0d1097 (diff) | |
download | bcm5719-llvm-cdcb580d4e7760b7fd2b85fd647c7e5c3478ee99.tar.gz bcm5719-llvm-cdcb580d4e7760b7fd2b85fd647c7e5c3478ee99.zip |
[mips] Fix va_arg() for pointer types on big-endian N32.
Summary:
The Mips ABI's treat pointers in the same way as integers. They are
sign-extended to 32-bit for O32, and 64-bit for N32/N64. This doesn't matter
for O32 and N64 where pointers are already the correct width but it does matter
for big-endian N32, where pointers are 32-bit and need promoting.
The caller side is already passing pointers correctly. This patch corrects the
callee.
Reviewers: vmedic, atanasyan
Reviewed By: atanasyan
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D6812
llvm-svn: 225782
Diffstat (limited to 'llvm/lib/IR/PassManager.cpp')
0 files changed, 0 insertions, 0 deletions