mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +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.
|
||||
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