aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2024-10-28 14:28:07 +0100
committerGitHub <noreply@github.com>2024-10-28 14:28:07 +0100
commit9090430d4176fa260b8da46b7b983b3760d452be (patch)
treea004482b2ef3527ce62ad7d17b3deb9fbe55d62e /flang/lib/Frontend/CompilerInvocation.cpp
parentddd463be7edc3f3d03a6e88917fff66ef84210e9 (diff)
downloadllvm-9090430d4176fa260b8da46b7b983b3760d452be.zip
llvm-9090430d4176fa260b8da46b7b983b3760d452be.tar.gz
llvm-9090430d4176fa260b8da46b7b983b3760d452be.tar.bz2
Add clang::lifetimebound annotation to StringRef constructors. (#113878)
Adding the lifetimebound annotation to the ArrayRef's array constructor can enable us to detect the following use-after-free issues: ``` llvm::StringRef TestZoneName() { char test[] = "foo"; // oops, missing static return test; // use-after-free. } ``` See #113533
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions