[all-commits] [llvm/llvm-project] b3e720: [PassInstrumentation] Don't insert extra entries i...
Danila Malyutin via All-commits
all-commits at lists.llvm.org
Tue Jul 22 09:52:11 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3e720b4deb481df11cb6be09e5a2ad7a4d4a7eb
https://github.com/llvm/llvm-project/commit/b3e720b4deb481df11cb6be09e5a2ad7a4d4a7eb
Author: Danila Malyutin <danilaml at users.noreply.github.com>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
M llvm/include/llvm/IR/PassInstrumentation.h
M llvm/lib/IR/PassInstrumentation.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list