[Openmp-commits] [openmp] [OpenMP][OMPD] Load `libompd` with LLVM dynamic lib (PR #222455)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 10 01:14:35 PDT 2026
================
@@ -28,41 +32,35 @@ static void set_error(const char *msg) {
last_error[sizeof(last_error) - 1] = '\0';
}
-static void clear_error(void) {
- last_error[0] = '\0';
- (void)dlerror();
-}
+static void clear_error(void) { last_error[0] = '\0'; }
int ompd_load_library(const char *name) {
- const char *dlerr;
-
clear_error();
if (!name || !name[0]) {
set_error("OMPD library path is empty");
- ompd_library = NULL;
----------------
jprotze wrote:
On error, we keep the old value now? Should the function just set the variable to NULL on entry?
https://github.com/llvm/llvm-project/pull/222455
More information about the Openmp-commits
mailing list