diff options
author | SivanShani-Arm <sivan.shani@arm.com> | 2025-04-14 14:59:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-14 14:59:24 +0100 |
commit | bcbdbd25c0a2608299a4e97f12076be06a64d724 (patch) | |
tree | 18388ab518417c7ff30728279a497ff7b336e290 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 74e8f29f3138431abc9b393579733f3bbd0d85d8 (diff) | |
download | llvm-bcbdbd25c0a2608299a4e97f12076be06a64d724.zip llvm-bcbdbd25c0a2608299a4e97f12076be06a64d724.tar.gz llvm-bcbdbd25c0a2608299a4e97f12076be06a64d724.tar.bz2 |
[llvm][ELF][build attributes] Change StringRef to std::string for BuildAttributeSubSection::Name (#135625)
BuildAttributeSubSection::Name must be a std::string instead of
StringRef because it may be assigned from non-persistent memory.
StringRef is non-owning and unsafe in this context. This change ensures
the subsection name owns its memory, preventing use-after-free or
dangling references.
Context: Work in progress in PR #131990.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions