Skip to content

Commit

Permalink
fix host buffer allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
xhuohai committed Dec 13, 2024
1 parent e972eba commit dedcc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Native/src/runtime/host_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class host_buffer_impl : public host_buffer_node {
}

bool has_physical_address() const noexcept override {
return physical_address_;
return data_ == nullptr || physical_address_;
}

result<uintptr_t> physical_address() noexcept override {
Expand Down

0 comments on commit dedcc1a

Please sign in to comment.