Skip to content

Commit 13dc13e

Browse files
committed
[OMPT] Improve cast that was lost on commit, NFC.
llvm-svn: 317480
1 parent cc56a8b commit 13dc13e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/runtime/src/ompt-general.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ ompt_start_tool(unsigned int omp_version, const char *runtime_version) {
115115
#ifdef KMP_DYNAMIC_LIB
116116
ompt_start_tool_result_t *ret = NULL;
117117
// Try next symbol in the address space
118-
ompt_start_tool_t next_tool = NULL;
119-
*(void **)(&next_tool) = dlsym(RTLD_NEXT, "ompt_start_tool");
118+
ompt_start_tool_t next_tool =
119+
(ompt_start_tool_t)dlsym(RTLD_NEXT, "ompt_start_tool");
120120
if (next_tool)
121121
ret = (next_tool)(omp_version, runtime_version);
122122
return ret;

0 commit comments

Comments
 (0)