diff options
author | JonChesterfield <jonathanchesterfield@gmail.com> | 2019-11-19 19:41:59 +0000 |
---|---|---|
committer | JonChesterfield <jonathanchesterfield@gmail.com> | 2019-11-19 19:41:59 +0000 |
commit | a84b48d01e3e77b754a6d4d7326e4a0c4faa10ab (patch) | |
tree | d2ea12ee5ac8101f8800d1f9fbaa3ccdb3621a94 | |
parent | 2535fe5ad3327c8f77654a728986ca0afdf249f7 (diff) | |
download | bcm5719-llvm-a84b48d01e3e77b754a6d4d7326e4a0c4faa10ab.tar.gz bcm5719-llvm-a84b48d01e3e77b754a6d4d7326e4a0c4faa10ab.zip |
[nfc][libomptarget] Remove casts of string literals to char*
-rw-r--r-- | openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h | 7 | ||||
-rw-r--r-- | openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h b/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h index 1a815ee4d24..a446e005c32 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h @@ -52,17 +52,16 @@ public: // Free any memory allocated for outlined parallel function with a large // number of arguments. if (nArgs > MAX_SHARED_ARGS) { - SafeFree(args, (char *)"new extended args"); + SafeFree(args, "new extended args"); Init(); } } INLINE void EnsureSize(size_t size) { if (size > nArgs) { if (nArgs > MAX_SHARED_ARGS) { - SafeFree(args, (char *)"new extended args"); + SafeFree(args, "new extended args"); } - args = (void **) SafeMalloc(size * sizeof(void *), - (char *)"new extended args"); + args = (void **)SafeMalloc(size * sizeof(void *), "new extended args"); nArgs = size; } } diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu index dc0c22c4319..aa017277866 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu @@ -413,7 +413,7 @@ EXTERN void __kmpc_end_serialized_parallel(kmp_Ident *loc, omptarget_nvptx_threadPrivateContext->SetTopLevelTaskDescr( threadId, currTaskDescr->GetPrevTaskDescr()); // free - SafeFree(currTaskDescr, (char *)"new seq parallel task"); + SafeFree(currTaskDescr, "new seq parallel task"); currTaskDescr = getMyTopTaskDescriptor(threadId); currTaskDescr->RestoreLoopData(); } |