diff options
author | Danila Malyutin <danilaml@users.noreply.github.com> | 2025-07-22 20:51:49 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-22 20:51:49 +0400 |
commit | b3e720b4deb481df11cb6be09e5a2ad7a4d4a7eb (patch) | |
tree | bee5775c6f07c86a8e018ae59be1f241e8cbd20a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 115f768b68d290995b3d9129f44e33cd7c8a11a6 (diff) | |
download | llvm-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