summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/Linker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Linker/Linker.cpp')
-rw-r--r--llvm/lib/Linker/Linker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Linker/Linker.cpp b/llvm/lib/Linker/Linker.cpp
index ee34cee1d41..19fd861c4dd 100644
--- a/llvm/lib/Linker/Linker.cpp
+++ b/llvm/lib/Linker/Linker.cpp
@@ -133,7 +133,9 @@ static inline sys::Path IsLibrary(const std::string& Name,
FullPath.elideSuffix();
FullPath.appendSuffix(&(LTDL_SHLIB_EXT[1]));
- if (FullPath.isDynamicLibrary())
+ if (FullPath.isDynamicLibrary()) // Native shared library?
+ return FullPath;
+ if (FullPath.isBytecodeFile()) // .so file containing bytecode?
return FullPath;
FullPath.clear();
OpenPOWER on IntegriCloud