Commit 6fe5302
Remove incorrect
Don't require that the alignment of `size_t` equals pointer size when
using the `size_t_is_usize` option. The purpose of this check was to make
sure that `size_t` and `uintptr_t` are the same type, but the alignment
and size don't have to match for that to be true. The code still checks
that `size_t` has the same size as a pointer.
Clang's C API doesn't expose the target pointer alignment, so just remove
the assert.
Fixes #3312size_t_is_usize check1 parent f94b50d commit 6fe5302
1 file changed
+0
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | 996 | | |
1004 | 997 | | |
1005 | 998 | | |
| |||
0 commit comments