aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2025-04-11 10:51:08 +0800
committerGitHub <noreply@github.com>2025-04-11 10:51:08 +0800
commit04c38981a9ce3e6225669c0e41cab947e3e7989f (patch)
tree11f9ae63e6444085c8329c724fd93aa176f722b0 /llvm/lib/CodeGen/MachineOperand.cpp
parentf40001372b54ce68507f36b600f798e832478e16 (diff)
downloadllvm-04c38981a9ce3e6225669c0e41cab947e3e7989f.zip
llvm-04c38981a9ce3e6225669c0e41cab947e3e7989f.tar.gz
llvm-04c38981a9ce3e6225669c0e41cab947e3e7989f.tar.bz2
[Clang][CodeGen] Do not set inbounds flag in `EmitMemberDataPointerAddress` when the base pointer is null (#130952)
See also https://github.com/llvm/llvm-project/pull/130734 for the original motivation. This pattern (`container_of`) is also widely used by real-world programs. Examples: https://github.com/llvm/llvm-project/blob/1d89d7d5d76e391b035f50343e2a4890506c6f2b/llvm/include/llvm/IR/SymbolTableListTraits.h#L77-L87 https://github.com/nodejs/node/blob/a2a53cb728ec5f776ac16879ce0f480a8e838320/src/util-inl.h#L134-L137 https://github.com/search?q=*%29nullptr-%3E*&type=code
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions