[patch] Correctly align arrays of int64_t on 32 bit systems

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Aug 6 20:39:34 PDT 2013


It is really odd that this was not noticed before, but we align

long long int big[1024];

to 4 bytes on 32 bit systems. The problem is that we are only looking
at the element type when getLargeArrayMinWidth return non zero.

The attached patch fixes it.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 2148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130806/d2aa7674/attachment.obj>


More information about the cfe-commits mailing list