[llvm-commits] CVS: llvm/lib/System/DynamicLibrary.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun May 14 12:01:06 PDT 2006
Changes in directory llvm/lib/System:
DynamicLibrary.cpp updated: 1.13 -> 1.14
---
Log message:
Bug noticed, by inspection. Filename can be null.
---
Diffs of the changes: (+2 -1)
DynamicLibrary.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/System/DynamicLibrary.cpp
diff -u llvm/lib/System/DynamicLibrary.cpp:1.13 llvm/lib/System/DynamicLibrary.cpp:1.14
--- llvm/lib/System/DynamicLibrary.cpp:1.13 Fri May 12 13:13:11 2006
+++ llvm/lib/System/DynamicLibrary.cpp Sun May 14 14:00:53 2006
@@ -107,7 +107,8 @@
a_handle = lt_dlopenext(filename);
if (a_handle == 0)
- throw std::string("Can't open :") + filename + ": " + lt_dlerror();
+ throw std::string("Can't open :") +
+ (filename ? filename : "<current process>") + ": " + lt_dlerror();
lt_dlmakeresident(a_handle);
More information about the llvm-commits
mailing list