Bug noticed, by inspection. Filename can be null.

llvm-svn: 28292
This commit is contained in:
Chris Lattner
2006-05-14 19:00:53 +00:00
parent f64397ba1a
commit 78b8e977b2

View File

@@ -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);