This reverts commit r301155, which was incorrect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301156
91177308-0d34-0410-b5e6-
96231b3b80d8
Handles.push_back(Handle);
} else {
#ifndef LLVM_ON_WIN32
- if (Process != nullptr) {
+ if (Process) {
if (CanClose)
DLClose(Process);
if (Process == Handle)
static DynamicLibrary::HandleSet *IsOpenedHandlesInstance(void *Handle) {
if (!OpenedHandles.isConstructed())
- return false;
+ return nullptr;
DynamicLibrary::HandleSet &Inst = *OpenedHandles;
return Handle == &Inst ? &Inst : nullptr;
}