This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by alvinhochun on Mar 30 2023, 6:33 AM.

Details

Summary

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.

Diff Detail

Event Timeline

alvinhochun created this revision.Mar 30 2023, 6:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 6:33 AM
Herald added a subscriber: Enna1. · View Herald Transcript
alvinhochun requested review of this revision.Mar 30 2023, 6:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 6:33 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
mstorsjo accepted this revision.Mar 30 2023, 2:01 PM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 30 2023, 2:01 PM