Index: lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp =================================================================== --- lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp +++ lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp @@ -53,8 +53,8 @@ i != e; ++i) { // Get access to the plugin. std::string err; - DynamicLibrary lib = DynamicLibrary::getPermanentLibrary(i->c_str(), &err); - if (!lib.isValid()) { + DynamicLibrary *lib = DynamicLibrary::getPermanentLibrary(i->c_str(), &err); + if (!lib) { diags->Report(diag::err_fe_unable_to_load_plugin) << *i << err; continue; }