[all-commits] [llvm/llvm-project] 23d08a: [Offload][NFC] use unique ptrs for platforms (#160...
Piotr Balcer via All-commits
all-commits at lists.llvm.org
Mon Sep 29 05:10:48 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23d08af3d422f10d180af1e0b6261b65f76dfeed
https://github.com/llvm/llvm-project/commit/23d08af3d422f10d180af1e0b6261b65f76dfeed
Author: Piotr Balcer <piotr.balcer at intel.com>
Date: 2025-09-29 (Mon, 29 Sep 2025)
Changed paths:
M offload/liboffload/src/OffloadImpl.cpp
Log Message:
-----------
[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.
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