On Jan 22, 2009, at 9:58 PM, sanjiv gupta wrote:

> clang asserts for a simple array initialization test case for PIC16.
>
> $ clang -arch=pic16 -emit-llvm-bc char_array.c
>
> clang: /home/cvsuser/Projects/c16/include/llvm/ADT/APInt.h:793: bool
> llvm::APInt::operator==(const llvm::APInt&) const: Assertion `BitWidth
> == RHS.BitWidth && "Comparison requires equal bit widths"' failed.
>
> The test case is below.
>
> char *ptr = (char *)0xA0;
> char a;
> char arr[10] = {0,1,2,3,4,5,6,7,8,9};
>
> void main()
> {
> a = arr[1];
> *ptr = a;
> }

Thank you! This is now fixed in Subversion.

        - Doug
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to