[PATCH] D33659: Extend DynamicLibrary class to be usable without loading permanently.
Frederich Munch via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 29 14:07:50 PDT 2017
marsupial created this revision.
https://reviews.llvm.org/D33659
Files:
lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33659.100640.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170529/c7b1bfa2/attachment.bin>
More information about the cfe-commits
mailing list