[asan][test] Fix `TestCases/alloca_*` ptr-to-long cast on Windows
authorAlvin Wong <alvin@alvinhc.com>
Thu, 30 Mar 2023 11:21:56 +0000 (19:21 +0800)
committerAlvin Wong <alvin@alvinhc.com>
Sat, 1 Apr 2023 17:06:15 +0000 (01:06 +0800)
commit985580d7c03c3d0790706089d1f526094dba92ae
treea4466aad06be7e3044dc24430ba1140d4881dd8d
parentbae2fbaebf2527f1259ac5f5881749d0ce3a8ee7
[asan][test] Fix `TestCases/alloca_*` ptr-to-long cast on Windows

64-bit Windows uses 32-bit long so these casts fail to compile with the
error "cast from pointer to smaller type". Change to instead use
uintptr_t like other tests.

Differential Revision: https://reviews.llvm.org/D147232
compiler-rt/test/asan/TestCases/alloca_big_alignment.cpp
compiler-rt/test/asan/TestCases/alloca_detect_custom_size_.cpp
compiler-rt/test/asan/TestCases/alloca_instruments_all_paddings.cpp
compiler-rt/test/asan/TestCases/alloca_overflow_partial.cpp
compiler-rt/test/asan/TestCases/alloca_overflow_right.cpp
compiler-rt/test/asan/TestCases/alloca_safe_access.cpp
compiler-rt/test/asan/TestCases/alloca_underflow_left.cpp