Don't make a path absolute, just check if it is.

This commit is contained in:
Frederich Munch 2016-09-16 17:15:52 -04:00 committed by sftnight
parent eb32d6eae4
commit bd98283b8c

View File

@ -167,12 +167,8 @@ namespace cling {
std::string
DynamicLibraryManager::lookupLibrary(llvm::StringRef libStem) const {
llvm::SmallString<128> Absolute(libStem);
llvm::sys::fs::make_absolute(Absolute);
bool isAbsolute = libStem == Absolute;
// If it is an absolute path, don't try iterate over the paths.
if (isAbsolute) {
if (llvm::sys::path::is_absolute(libStem)) {
if (isSharedLib(libStem))
return normalizePath(libStem);
else