[ORC] Don't try to perform empty deallocations.

This commit is contained in:
Lang Hames 2021-10-25 15:06:45 -07:00
parent 9feb461375
commit bfb40e83ee
1 changed files with 3 additions and 0 deletions

View File

@ -710,6 +710,9 @@ Error ObjectLinkingLayer::handleRemoveResources(ResourceKey K) {
}
});
if (AllocsToRemove.empty())
return Error::success();
return MemMgr.deallocate(std::move(AllocsToRemove));
}