mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Report an error if one occurs in releaseModule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6402013c8
commit
858dd546bb
@ -159,6 +159,9 @@ Linker::LinkInArchive(const sys::Path &Filename, bool &is_native) {
|
|||||||
// Get the module we must link in.
|
// Get the module we must link in.
|
||||||
std::string moduleErrorMsg;
|
std::string moduleErrorMsg;
|
||||||
std::auto_ptr<Module> AutoModule((*I)->releaseModule( &moduleErrorMsg ));
|
std::auto_ptr<Module> AutoModule((*I)->releaseModule( &moduleErrorMsg ));
|
||||||
|
if (!moduleErrorMsg.empty())
|
||||||
|
return error("Could not load a module: " + moduleErrorMsg);
|
||||||
|
|
||||||
Module* aModule = AutoModule.get();
|
Module* aModule = AutoModule.get();
|
||||||
|
|
||||||
if (aModule != NULL) {
|
if (aModule != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user