[clang] [Clang][CodeGen] Respect -fwrapv-pointer when emitting struct GEPs (PR #134269)

Yingwei Zheng via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 4 01:51:26 PDT 2025


dtcxzyw wrote:

> > most of them are safe
> 
> What's the distinguishing factor here? Do you consider it "safe" to mark inbounds if the pointer is immediately dereferenced? Or does the pointer have to refer to a known successful allocation? Or something else?

Other calls to `CGBuilderTy::CreateStructGEP` operate on some internal structures like valist/complex/kernel launch params/GPU printf args.


https://github.com/llvm/llvm-project/pull/134269


More information about the cfe-commits mailing list