[PATCH] D47953: [builtin] Add bitfield support for __builtin_dump_struct

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 19 08:26:49 PDT 2018


aaron.ballman added inline comments.


================
Comment at: lib/CodeGen/CGBuiltin.cpp:1250
+      if (Info.IsSigned) {
+        unsigned HighBits = Info.StorageSize - Info.Offset - Info.Size;
+        if (HighBits)
----------------
What happens if this overflows due to being < 0?


Repository:
  rC Clang

https://reviews.llvm.org/D47953





More information about the cfe-commits mailing list