mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
Report an error if one occurs in releaseModule.
llvm-svn: 40405
This commit is contained in:
parent
06bdb78751
commit
dd93d5abaa
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user