summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-06 14:33:09 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-06 14:33:09 +0000
commit13dc13ef098fd3d69769a63cdf9c88bd112be6bf (patch)
treeb7748c70038c59a22cd8b33fb585389e6d943c36 /openmp/runtime/src
parentcc56a8b108132134b17c8b70e0c1df59e1dad828 (diff)
downloadbcm5719-llvm-13dc13ef098fd3d69769a63cdf9c88bd112be6bf.tar.gz
bcm5719-llvm-13dc13ef098fd3d69769a63cdf9c88bd112be6bf.zip
[OMPT] Improve cast that was lost on commit, NFC.
llvm-svn: 317480
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/ompt-general.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/runtime/src/ompt-general.cpp b/openmp/runtime/src/ompt-general.cpp
index e9cb02cc62d..f9d2f2c09de 100644
--- a/openmp/runtime/src/ompt-general.cpp
+++ b/openmp/runtime/src/ompt-general.cpp
@@ -115,8 +115,8 @@ ompt_start_tool(unsigned int omp_version, const char *runtime_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;
OpenPOWER on IntegriCloud