projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c640201
)
Report an error if one occurs in releaseModule.
author
Reid Spencer
<rspencer@reidspencer.com>
Sun, 22 Jul 2007 21:39:37 +0000
(21:39 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Sun, 22 Jul 2007 21:39:37 +0000
(21:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40405
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Linker/LinkArchives.cpp
patch
|
blob
|
history
diff --git
a/lib/Linker/LinkArchives.cpp
b/lib/Linker/LinkArchives.cpp
index 381d0e7e5a069252b8a8812b9d5465055057d6d5..f25df888ff8f021fa325a083e9124042ce261e13 100644
(file)
--- a/
lib/Linker/LinkArchives.cpp
+++ b/
lib/Linker/LinkArchives.cpp
@@
-159,6
+159,9
@@
Linker::LinkInArchive(const sys::Path &Filename, bool &is_native) {
// Get the module we must link in.
std::string moduleErrorMsg;
std::auto_ptr<Module> AutoModule((*I)->releaseModule( &moduleErrorMsg ));
+ if (!moduleErrorMsg.empty())
+ return error("Could not load a module: " + moduleErrorMsg);
+
Module* aModule = AutoModule.get();
if (aModule != NULL) {