aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDanila Malyutin <danilaml@users.noreply.github.com>2025-07-22 20:51:49 +0400
committerGitHub <noreply@github.com>2025-07-22 20:51:49 +0400
commitb3e720b4deb481df11cb6be09e5a2ad7a4d4a7eb (patch)
treebee5775c6f07c86a8e018ae59be1f241e8cbd20a /clang/lib/Frontend/CompilerInvocation.cpp
parent115f768b68d290995b3d9129f44e33cd7c8a11a6 (diff)
downloadllvm-b3e720b4deb481df11cb6be09e5a2ad7a4d4a7eb.zip
llvm-b3e720b4deb481df11cb6be09e5a2ad7a4d4a7eb.tar.gz
llvm-b3e720b4deb481df11cb6be09e5a2ad7a4d4a7eb.tar.bz2
[PassInstrumentation] Don't insert extra entries in getPassNameForClassName (#150029)
Don't modify ClassToPassName map unless ClassName is found. Instead, just return empty StringRef if there is no matching entry. This will prevent possible dangling references in ClassToPassName map in case of ClassName being freed. See https://github.com/llvm/llvm-project/pull/145059/files#r2219763671 for more context.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions