projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc56a8b
)
[OMPT] Improve cast that was lost on commit, NFC.
author
Jonas Hahnfeld
<hahnjo@hahnjo.de>
Mon, 6 Nov 2017 14:33:09 +0000
(14:33 +0000)
committer
Jonas Hahnfeld
<hahnjo@hahnjo.de>
Mon, 6 Nov 2017 14:33:09 +0000
(14:33 +0000)
llvm-svn: 317480
openmp/runtime/src/ompt-general.cpp
patch
|
blob
|
history
diff --git
a/openmp/runtime/src/ompt-general.cpp
b/openmp/runtime/src/ompt-general.cpp
index
e9cb02c
..
f9d2f2c
100644
(file)
--- 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;