llvm-project
b3e720b4 - [PassInstrumentation] Don't insert extra entries in getPassNameForClassName (#150029)

Commit
107 days ago
[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.
Author
Parents
Loading