aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorz1nke <iamczn.cpp@gmail.com>2024-10-23 16:46:36 +0800
committerGitHub <noreply@github.com>2024-10-23 10:46:36 +0200
commit684c26c89b8994fc31d1c4be0cf70d6cc6f2b7ca (patch)
tree8c3e23542682b3862742c43d701662530101f971 /llvm/lib/CodeGen/CodeGen.cpp
parent6eb93d04e567e1f1ff3e3de22f158b1e0c4898df (diff)
downloadllvm-684c26c89b8994fc31d1c4be0cf70d6cc6f2b7ca.zip
llvm-684c26c89b8994fc31d1c4be0cf70d6cc6f2b7ca.tar.gz
llvm-684c26c89b8994fc31d1c4be0cf70d6cc6f2b7ca.tar.bz2
[analyzer] Remove redundant "returned to caller" suffix for compound literal in StackAddressEscape
This patch simplifies the diagnostic message in the core.StackAddrEscape for stack memory associated with compound literals by removing the redundant "returned to caller" suffix. Example: https://godbolt.org/z/KxM67vr7c ```c // clang --analyze -Xanalyzer -analyzer-checker=core.StackAddressEscape void* compound_literal() { return &(unsigned short){((unsigned short)0x22EF)}; } ``` warning: Address of stack memory associated with a compound literal declared on line 2 **returned to caller returned to caller** [core.StackAddressEscape]
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions