[Openmp-commits] [openmp] r317480 - [OMPT] Improve cast that was lost on commit, NFC.
Jonas Hahnfeld via Openmp-commits
openmp-commits at lists.llvm.org
Mon Nov 6 06:33:10 PST 2017
Author: hahnfeld
Date: Mon Nov 6 06:33:09 2017
New Revision: 317480
URL: http://llvm.org/viewvc/llvm-project?rev=317480&view=rev
Log:
[OMPT] Improve cast that was lost on commit, NFC.
Modified:
openmp/trunk/runtime/src/ompt-general.cpp
Modified: openmp/trunk/runtime/src/ompt-general.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/ompt-general.cpp?rev=317480&r1=317479&r2=317480&view=diff
==============================================================================
--- openmp/trunk/runtime/src/ompt-general.cpp (original)
+++ openmp/trunk/runtime/src/ompt-general.cpp Mon Nov 6 06:33:09 2017
@@ -115,8 +115,8 @@ ompt_start_tool(unsigned int omp_version
#ifdef KMP_DYNAMIC_LIB
ompt_start_tool_result_t *ret = NULL;
// Try next symbol in the address space
- ompt_start_tool_t next_tool = NULL;
- *(void **)(&next_tool) = dlsym(RTLD_NEXT, "ompt_start_tool");
+ ompt_start_tool_t next_tool =
+ (ompt_start_tool_t)dlsym(RTLD_NEXT, "ompt_start_tool");
if (next_tool)
ret = (next_tool)(omp_version, runtime_version);
return ret;
More information about the Openmp-commits
mailing list