aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Linker/Linker.cpp2
-rw-r--r--lib/System/Path.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp
index eb3fb6b1c2..19ecaa3965 100644
--- a/lib/Linker/Linker.cpp
+++ b/lib/Linker/Linker.cpp
@@ -133,7 +133,7 @@ static inline sys::Path IsLibrary(StringRef Name,
// Try the libX.so (or .dylib) form
FullPath.eraseSuffix();
- FullPath.appendSuffix(&(LTDL_SHLIB_EXT[1]));
+ FullPath.appendSuffix(sys::Path::GetDLLSuffix());
if (FullPath.isDynamicLibrary()) // Native shared library?
return FullPath;
if (FullPath.isBitcodeFile()) // .so file containing bitcode?
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp
index ae166a574d..8fc4153acb 100644
--- a/lib/System/Path.cpp
+++ b/lib/System/Path.cpp
@@ -192,7 +192,7 @@ Path::FindLibrary(std::string& name) {
}
StringRef Path::GetDLLSuffix() {
- return LTDL_SHLIB_EXT;
+ return &(LTDL_SHLIB_EXT[1]);
}
bool