diff options
Diffstat (limited to 'lib/Linker/LinkArchives.cpp')
-rw-r--r-- | lib/Linker/LinkArchives.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Linker/LinkArchives.cpp b/lib/Linker/LinkArchives.cpp index 5165bad199..e115b93ad2 100644 --- a/lib/Linker/LinkArchives.cpp +++ b/lib/Linker/LinkArchives.cpp @@ -137,7 +137,9 @@ Linker::LinkInArchive(const sys::Path &Filename) { // Find the modules we need to link into the target module std::set<ModuleProvider*> Modules; - arch->findModulesDefiningSymbols(UndefinedSymbols, Modules); + if (!arch->findModulesDefiningSymbols(UndefinedSymbols, Modules, &ErrMsg)) + return error("Cannot find symbols in '" + Filename.toString() + + "': " + ErrMsg); // If we didn't find any more modules to link this time, we are done // searching this archive. |