diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-14 19:00:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-14 19:00:53 +0000 |
commit | 78b8e977b2cf39140eb37e5f1f13d511b890b86c (patch) | |
tree | cf3586f18fa2e2a3f9d8756aa3abaf1c6ac05b03 | |
parent | f64397ba1aa5df37205a1e3650a1f35f4736f2ac (diff) | |
download | bcm5719-llvm-78b8e977b2cf39140eb37e5f1f13d511b890b86c.tar.gz bcm5719-llvm-78b8e977b2cf39140eb37e5f1f13d511b890b86c.zip |
Bug noticed, by inspection. Filename can be null.
llvm-svn: 28292
-rw-r--r-- | llvm/lib/System/DynamicLibrary.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp index 056fed0eb38..9bec68e5a95 100644 --- a/llvm/lib/System/DynamicLibrary.cpp +++ b/llvm/lib/System/DynamicLibrary.cpp @@ -107,7 +107,8 @@ void DynamicLibrary::LoadLibraryPermanently(const char* filename) { 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); |