[hwasan] Replace _Unwind_Word with uintptr_t
authorFangrui Song <i@maskray.me>
Sun, 7 Nov 2021 05:34:50 +0000 (21:34 -0800)
committerFangrui Song <i@maskray.me>
Sun, 7 Nov 2021 05:34:50 +0000 (22:34 -0700)
commit815b9f53d85e32e13bf318be24e7ece0617ff85d
treea5c43e48f297763e45b9cbeb2489d96095a77050
parent22e21da47d8adfc9ff5965be2ca682f8e44a6902
[hwasan] Replace _Unwind_Word with uintptr_t

GCC introduced `__attribute__((mode(unwind_word)))` to work around
Cell Broadband Engine SPU (which was removed from GCC in 2019-09),
which is irrelevant to hwasan.
_Unwind_GetGR/_Unwind_GetCFA from llvm-project/libunwind don't use unwind_word.

Using _Unwind_Word can lead to build failures if libunwind's unwind.h is
preferred over unwind.h in the Clang resource directory (e.g. built with GCC).
compiler-rt/lib/hwasan/hwasan_exceptions.cpp