aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorPiotr Balcer <piotr.balcer@intel.com>2025-09-29 14:10:26 +0200
committerGitHub <noreply@github.com>2025-09-29 07:10:26 -0500
commit23d08af3d422f10d180af1e0b6261b65f76dfeed (patch)
treeb3b8404e0e66e364d4d11fd779406bfc5c7cacdb /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parent9d33b99fdb83ee2313ccd4b3a2faabbb13202c5e (diff)
downloadllvm-23d08af3d422f10d180af1e0b6261b65f76dfeed.zip
llvm-23d08af3d422f10d180af1e0b6261b65f76dfeed.tar.gz
llvm-23d08af3d422f10d180af1e0b6261b65f76dfeed.tar.bz2
[Offload][NFC] use unique ptrs for platforms (#160888)
Currently, devices store a raw pointer to back to their owning Platform. Platforms are stored directly inside of a vector. Modifying this vector risks invalidating all the platform pointers stored in devices. This patch allocates platforms individually, and changes devices to store a reference to its platform instead of a pointer. This is safe, because platforms are guaranteed to outlive the devices they contain.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions