[clang] [clang][CodeGen] Emit prefetch hints and frame address depth as i32 (PR #221477)
Kiroo via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 7 23:03:42 PDT 2026
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
More information about the cfe-commits
mailing list