aboutsummaryrefslogtreecommitdiff
path: root/openmp/libomptarget/src/PluginManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/libomptarget/src/PluginManager.cpp')
-rw-r--r--openmp/libomptarget/src/PluginManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/openmp/libomptarget/src/PluginManager.cpp b/openmp/libomptarget/src/PluginManager.cpp
index 34f1f49..9289132 100644
--- a/openmp/libomptarget/src/PluginManager.cpp
+++ b/openmp/libomptarget/src/PluginManager.cpp
@@ -21,7 +21,7 @@
using namespace llvm;
using namespace llvm::sys;
-PluginManager *PM;
+PluginManager *PM = nullptr;
// List of all plugins that can support offloading.
static const char *RTLNames[] = {ENABLED_OFFLOAD_PLUGINS};
@@ -56,10 +56,10 @@ PluginAdaptorTy::PluginAdaptorTy(const std::string &Name,
Error PluginAdaptorTy::init() {
-#define PLUGIN_API_HANDLE(NAME, MANDATORY) \
+#define PLUGIN_API_HANDLE(NAME) \
NAME = reinterpret_cast<decltype(NAME)>( \
LibraryHandler->getAddressOfSymbol(GETNAME(__tgt_rtl_##NAME))); \
- if (MANDATORY && !NAME) { \
+ if (!NAME) { \
return createStringError(inconvertibleErrorCode(), \
"Invalid plugin as necessary interface function " \
"(%s) was not found.\n", \