[llvm-commits] [127801] When an LLVM type has struct padding that overlaps with important fields of

Duncan Sands baldrick at free.fr
Thu May 31 06:18:15 PDT 2007


Hi Chris, this breaks the Ada build since the TYPE_SIZE may not be a constant:

> +  if (TYPE_SIZE(type) == 0 ||
> +      PadStartBits >= int(TREE_INT_CST_LOW(TYPE_SIZE(type))) ||

I've attached a fix, which includes some other tweaks for arrays
(not very important) plus whitespace cleanup.

Ciao,

Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: union_fix.diff
Type: text/x-diff
Size: 2450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070531/ea47889c/attachment.diff>


More information about the llvm-commits mailing list