aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/ReaderWrappers.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-09-24 22:10:47 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-09-24 22:10:47 +0000
commit134aba6a757e19e961bbd7146552fb59b8b87c31 (patch)
tree47a43a236eb8c547e8f9016125078b65094a0bd1 /lib/Bytecode/Reader/ReaderWrappers.cpp
parent23ed9c1c97911d65f90759e0ef74769d27d57429 (diff)
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
Diffstat (limited to 'lib/Bytecode/Reader/ReaderWrappers.cpp')
-rw-r--r--lib/Bytecode/Reader/ReaderWrappers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/ReaderWrappers.cpp b/lib/Bytecode/Reader/ReaderWrappers.cpp
index a5cc1c9a6b..2203f53548 100644
--- a/lib/Bytecode/Reader/ReaderWrappers.cpp
+++ b/lib/Bytecode/Reader/ReaderWrappers.cpp
@@ -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;