rsmith added a comment. In https://reviews.llvm.org/D40144#927866, @hfinkel wrote:
> In https://reviews.llvm.org/D40144#927828, @tcanens wrote: > > > At least for GCC, it should use `__builtin_launder`. > > > I presume we'll need to add something similar for Clang as well. Yes, we agreed to use the same builtin name for this in Clang and GCC quite a while back, but haven't actually got around to implementing it in Clang yet. You should use `__has_builtin` to detect the existence of this builtin in Clang. In GCC, I believe this is available iff `__GNUC__` is 7 or greater. https://reviews.llvm.org/D40144 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits