zlfn wrote: I have added the conversion on the Sema side. I wrote this code myself, but since @mygitljf already has an open PR for it, I added them as a co-author on this PR (Please let me know if you would rather I did not.)
This run the range check before the type conversion. Converting first would silently truncate an argument such as `__builtin_prefetch(p, 0x100000001LL);`. I confirmed that GCC emits a warning in that case, so I chose this order to keep the behavior closer to GCC's. https://github.com/llvm/llvm-project/pull/221477 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
