Hi Duncan,

On Jan 28, 2008, at 2:14 AM, Duncan Sands wrote:

+        // Skip 'int:0', which just affects layout.
+ unsigned FieldSizeInBits = TREE_INT_CST_LOW(DECL_SIZE(Field));
+        if (FieldSizeInBits == 0)
+          continue;

This is probably safe (not completely clear), but why do you need to do it at all?

  getLLVMFieldFor() does not handle zero-sized bit-fields.

-
Devang
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to