Fix the special case for Windows. FIXE: Try remove ifdef

This commit is contained in:
Vassil Vassilev 2022-05-17 11:13:07 +00:00 committed by jenkins
parent b4b96a6d85
commit ed72130ee6

View File

@ -353,7 +353,7 @@ void* IncrementalExecutor::getAddressOfGlobal(llvm::StringRef symbolName,
#if !defined(_WIN32)
void* Addr = llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(symbolName.str());
#else
void* Addr = const_cast<void*>(platform::DLSym(Name));
void* Addr = const_cast<void*>(platform::DLSym(symbolName.str()));
#endif
*fromJIT = !Addr;
}