[cppgc] check on a valid shared_ptr.
This CL fixes calling CHECK_NULL on a moved shared_ptr. Bug: v8:13589 Change-Id: I52ab261df7e995f4a9fcfd7a2a3c2c0012a4c94f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4135701 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/main@{#85093}
This commit is contained in:
parent
bc4bac3877
commit
22ef44b655
@ -101,7 +101,7 @@ class PlatformWithPageAllocator final : public cppgc::Platform {
|
||||
page_allocator_(GetGlobalPageAllocator()) {
|
||||
// This platform wrapper should only be used if the platform doesn't provide
|
||||
// a `PageAllocator`.
|
||||
CHECK_NULL(delegate->GetPageAllocator());
|
||||
CHECK_NULL(delegate_->GetPageAllocator());
|
||||
}
|
||||
~PlatformWithPageAllocator() override = default;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user