hintonda added inline comments.

================
Comment at: lib/Sema/SemaInit.cpp:1926-1927
@@ +1925,4 @@
+      assert(Field != FieldEnd);
+      if (SeenFields[i])
+        continue;
+      if (!Field->isUnnamedBitfield() && !Field->hasInClassInitializer() &&
----------------
rsmith wrote:
> Use `SeenFields[Field->getFieldIndex()]` here and then remove the variable 
> `i`. We don't need to hardcode assumptions about how field indexes are 
> computed here.
You raise a good point I missed.  SeenFields should be big enough to mark all 
fields, but we should only set/examine from FieldStart->getFieldIndex().  
However, we still need the i.


http://reviews.llvm.org/D17407



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to