[PATCH] D147232: [asan][test] Fix `TestCases/alloca_*` ptr-to-long cast on Windows

Alvin Wong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 06:33:10 PDT 2023


alvinhochun created this revision.
alvinhochun added reviewers: mstorsjo, vitalybuka, glider, kcc.
Herald added a subscriber: Enna1.
Herald added a project: All.
alvinhochun requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147232

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147232.509650.patch
Type: text/x-patch
Size: 4936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230330/1d6d9c48/attachment.bin>


More information about the llvm-commits mailing list