[all-commits] [llvm/llvm-project] c04807: [Clang][CodeGen] Respect -fwrapv-pointer when emit...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Wed Apr 9 09:48:39 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c0480738cb3f4b2db47b77f5b18f9819cb995373
https://github.com/llvm/llvm-project/commit/c0480738cb3f4b2db47b77f5b18f9819cb995373
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths:
M clang/lib/CodeGen/CGExpr.cpp
M clang/test/CodeGen/pointer-overflow.c
Log Message:
-----------
[Clang][CodeGen] Respect -fwrapv-pointer when emitting struct GEPs (#134269)
This patch turns off inbounds/nuw flags for member accesses when
`-fwrapv-pointer` is set.
Closes https://github.com/llvm/llvm-project/issues/132449.
It is required by https://github.com/llvm/llvm-project/pull/130734.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list