[llvm-commits] CVS: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
Misha Brukman
brukman at cs.uiuc.edu
Wed Sep 24 17:11:02 PDT 2003
Changes in directory llvm/lib/Bytecode/Reader:
ReaderWrappers.cpp updated: 1.6 -> 1.7
---
Log message:
Actually assign the string correctly through the std::string pointer.
---
Diffs of the changes:
Index: llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
diff -u llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.6 llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.7
--- llvm/lib/Bytecode/Reader/ReaderWrappers.cpp:1.6 Wed Sep 24 17:04:02 2003
+++ llvm/lib/Bytecode/Reader/ReaderWrappers.cpp Wed Sep 24 17:10:47 2003
@@ -174,7 +174,7 @@
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 @@
M = AMP->releaseModule();
delete AMP;
} catch (std::string &err) {
- if (ErrorStr) ErrorStr = err;
+ if (ErrorStr) *ErrorStr = err;
return 0;
}
return M;
More information about the llvm-commits
mailing list