diff options
Diffstat (limited to 'llvm/lib/Linker/Linker.cpp')
| -rw-r--r-- | llvm/lib/Linker/Linker.cpp | 4 | 
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();  | 

