diff --git a/lib/Interpreter/Paths.cpp b/lib/Interpreter/Paths.cpp index d41e428a5..bbd70d89c 100644 --- a/lib/Interpreter/Paths.cpp +++ b/lib/Interpreter/Paths.cpp @@ -131,7 +131,7 @@ namespace platform { return lib.getOSSpecificHandle(); } - void DLClose(void* Lib, std::string* Err /* = nullptr*/) { + void DLClose(void* Lib, std::string& Err /* = nullptr*/) { auto dl = llvm::sys::DynamicLibrary(Lib); llvm::sys::DynamicLibrary::closeLibrary(dl); if (Err) { diff --git a/lib/Interpreter/Paths.h b/lib/Interpreter/Paths.h index 6cb3db258..6b8862aea 100644 --- a/lib/Interpreter/Paths.h +++ b/lib/Interpreter/Paths.h @@ -49,8 +49,6 @@ std::string NormalizePath(const std::string& Path); /// void* DLOpen(const std::string& Path, std::string& Err); -void* DLSym(const std::string& Name, std::string& Err); - ///\brief Close a handle to a shared library. /// /// \param [in] Lib - Handle to library from previous call to DLOpen