VEX/auxprogs/genoffsets.c: Add cast to my_offsetof. n-i-bz.
commit4816357b5c7ee5284cdf72800a81d2dd1845388f
authorJulian Seward <jseward@acm.org>
Tue, 12 Mar 2019 17:37:15 +0000 (12 18:37 +0100)
committerJulian Seward <jseward@acm.org>
Tue, 12 Mar 2019 17:37:15 +0000 (12 18:37 +0100)
tree0d7085c981cdce7b5e633b1fef6811148a0fa9c9
parent901cec4bce90f2554d0c8f70976e7fba943b3722
VEX/auxprogs/genoffsets.c: Add cast to my_offsetof.  n-i-bz.

Clang/LLVM trips over my_offsetof in VEX/auxprogs/genoffsets.c.  See LLVM
PR 40890 for details (https://bugs.llvm.org/show_bug.cgi?id=40890).

Now, it's a Clang bug that Clang exits on an assertion failure rather than
emits a diagnostic, but the previous my_offsetof expression is a pointer,
not an integer.  Add a cast as done in other definitions of offsetof in
the tree.  Patch from Ed Maste <emaste@freebsd.org>.
VEX/auxprogs/genoffsets.c