efriedma added a comment.

This looks sort of similar to CodeGen::isEmptyRecord... but I guess it's not 
quite the same thing.  (Even if a struct isn't "empty" in the ABI sense, there 
still might not be anything to copy.)

Instead of looking for zero-length bitfields, you probably want to just check 
isUnnamedBitfield()?  Unnamed bitfields are just padding, whether or not 
they're zero-length.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158267/new/

https://reviews.llvm.org/D158267

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

Reply via email to