aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2024-03-12 07:53:57 -0500
committerGitHub <noreply@github.com>2024-03-12 07:53:57 -0500
commit871086bf7fad42d610bfe02224662bdc71494a70 (patch)
tree073c2db67d29a5345046bcb89fe17ffe8132470d /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parentc7f1a987a66a1ba0865ecc18adbe4dc8dbc0c788 (diff)
downloadllvm-871086bf7fad42d610bfe02224662bdc71494a70.zip
llvm-871086bf7fad42d610bfe02224662bdc71494a70.tar.gz
llvm-871086bf7fad42d610bfe02224662bdc71494a70.tar.bz2
[flang] Avoid passing null pointers to nonnull parameters (#84785)
Certain functions in glibc have "nonnull" attributes on pointer parameters (even in cases where passing a null pointer should be handled correctly). There are a few cases of such calls in flang: memcmp and memcpy with the length parameter set to 0. Avoid passing a null pointer to these functions, since the conflict with the nonnull attribute could cause an undefined behavior. This was detected by the undefined behavior sanitizer.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions