yabinc wrote: LGTM
One problem I found is for bitfields: struct { char x; unsigned char y : 4; unsigned char z : 7; } __attribute__((packed)) t5 = { 101, 15, 123 }; The last field takes byte 2-3, while the code thinks it only takes byte 2. The code didn't consider well for fields starting from (or ending with) a (% 8 != 0) bit offset. https://github.com/llvm/llvm-project/pull/109898 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits