mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
Actually assign the string correctly through the std::string pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23ed9c1c97
commit
134aba6a75
@ -174,7 +174,7 @@ Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned Length,
|
||||
M = AMP->releaseModule();
|
||||
delete AMP;
|
||||
} catch (std::string &err) {
|
||||
if (ErrorStr) ErrorStr = err;
|
||||
if (ErrorStr) *ErrorStr = err;
|
||||
return 0;
|
||||
}
|
||||
return M;
|
||||
@ -199,7 +199,7 @@ Module *ParseBytecodeFile(const std::string &Filename, std::string *ErrorStr) {
|
||||
M = AMP->releaseModule();
|
||||
delete AMP;
|
||||
} catch (std::string &err) {
|
||||
if (ErrorStr) ErrorStr = err;
|
||||
if (ErrorStr) *ErrorStr = err;
|
||||
return 0;
|
||||
}
|
||||
return M;
|
||||
|
Loading…
x
Reference in New Issue
Block a user