Skip to content

Commit 16a7ca3

Browse files
author
jorgep31415
committed
[ET-VK] Remove unneeded Runtime move
TSIA Differential Revision: [D66174493](https://our.internmc.facebook.com/intern/diff/D66174493/) ghstack-source-id: 254357483 Pull Request resolved: #6964
1 parent eae0b04 commit 16a7ca3

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

backends/vulkan/runtime/vk_api/Runtime.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ std::unique_ptr<Runtime> init_global_vulkan_runtime() {
265265
};
266266

267267
try {
268-
return std::make_unique<Runtime>(Runtime(default_config));
268+
return std::make_unique<Runtime>(default_config);
269269
} catch (...) {
270270
}
271271

@@ -323,16 +323,6 @@ Runtime::~Runtime() {
323323
instance_ = VK_NULL_HANDLE;
324324
}
325325

326-
Runtime::Runtime(Runtime&& other) noexcept
327-
: config_(other.config_),
328-
instance_(other.instance_),
329-
adapters_(std::move(other.adapters_)),
330-
default_adapter_i_(other.default_adapter_i_),
331-
debug_report_callback_(other.debug_report_callback_) {
332-
other.instance_ = VK_NULL_HANDLE;
333-
other.debug_report_callback_ = {};
334-
}
335-
336326
uint32_t Runtime::create_adapter(const Selector& selector) {
337327
VK_CHECK_COND(
338328
!device_mappings_.empty(),

backends/vulkan/runtime/vk_api/Runtime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Runtime final {
5151
Runtime(const Runtime&) = delete;
5252
Runtime& operator=(const Runtime&) = delete;
5353

54-
Runtime(Runtime&&) noexcept;
54+
Runtime(Runtime&&) = delete;
5555
Runtime& operator=(Runtime&&) = delete;
5656

5757
~Runtime();

0 commit comments

Comments
 (0)