<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Duncan,<div><br><div><div>On Jan 28, 2008, at 2:14 AM, Duncan Sands wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><blockquote type="cite">+        // Skip 'int:0', which just affects layout.<br></blockquote><blockquote type="cite">+        unsigned FieldSizeInBits = TREE_INT_CST_LOW(DECL_SIZE(Field));<br></blockquote><blockquote type="cite">+        if (FieldSizeInBits == 0)<br></blockquote><blockquote type="cite">+          continue;<br></blockquote><br>This is probably safe (not completely clear), but why do you need to do it at all?<br></span></blockquote></div><br><div>  <span class="Apple-style-span" style="font-family: Monaco; font-size: 13px; white-space: pre; ">getLLVMFieldFor()<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; white-space: normal; "> does not handle zero-sized bit-fields. </span></span></div><div><br></div><div>-</div><div>Devang</div></div></body></html>