File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -651,7 +651,10 @@ void Plugin_unlock(PluginHandle handle) {
651
651
bool Plugin_sendMessage (PluginHandle handle, const BridgedData data) {
652
652
auto *plugin = static_cast <LoadedExecutablePlugin *>(handle);
653
653
StringRef message (data.baseAddress , data.size );
654
- return bool (plugin->sendMessage (message));
654
+ auto error = plugin->sendMessage (message);
655
+ bool hadError = bool (error);
656
+ llvm::consumeError (std::move (error));
657
+ return hadError;
655
658
}
656
659
657
660
bool Plugin_waitForNextMessage (PluginHandle handle, BridgedData *out) {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ llvm::Error PluginRegistry::loadLibraryPlugin(StringRef path) {
56
56
#else
57
57
lib = dlopen (path.str ().c_str (), RTLD_LAZY | RTLD_LOCAL);
58
58
if (!lib) {
59
- return llvm::createStringError (std::error_code (), dlerror ());
59
+ return llvm::createStringError (llvm::inconvertibleErrorCode (), dlerror ());
60
60
}
61
61
#endif
62
62
LoadedPluginLibraries.insert ({path, lib});
You can’t perform that action at this time.
0 commit comments