Cast pointers to uptr when calling internal_syscall
authorKostya Serebryany <kcc@google.com>
Wed, 21 May 2014 07:49:03 +0000 (07:49 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 21 May 2014 07:49:03 +0000 (07:49 +0000)
commit84019ff7e5b787f3d1004dd35302ed9b7345cf80
tree1677f6f7a4e5f7163bbed93665b4a70e5d2fc9bd
parent6c9eacb38419780518aadf7028db039b86fedaf7
Cast pointers to uptr when calling internal_syscall

For Linux/x86-64, pointers passed to internal_syscall should be casted
to uptr first.  Otherwise, they won't be properly extended to 64-bit for
x32.
Patch by H.J. Lu

llvm-svn: 209278
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc