Closed krasin closed 12 years ago
Indeed, byte/char/short/int should all be sizeof() = 1. This is the desired behavior, since later, the malloc implementation will take word based sizes.
LGTM. The changes I'm working on also change the "ByteSizes" in LLVM to use bytes of width 16, so that should be ok.
Thanks for the review. :)
Checked with
make clang-test -j8
.Please, take a look at this CL. I think that it's correct that sizeof(int) == 1, if byte is 16-bit, but I am very unsure.