forked from OSchip/llvm-project
[ORC] Don't try to perform empty deallocations.
This commit is contained in:
parent
9feb461375
commit
bfb40e83ee
|
@ -710,6 +710,9 @@ Error ObjectLinkingLayer::handleRemoveResources(ResourceKey K) {
|
|||
}
|
||||
});
|
||||
|
||||
if (AllocsToRemove.empty())
|
||||
return Error::success();
|
||||
|
||||
return MemMgr.deallocate(std::move(AllocsToRemove));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue