summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonChesterfield <jonathanchesterfield@gmail.com>2019-11-19 19:41:59 +0000
committerJonChesterfield <jonathanchesterfield@gmail.com>2019-11-19 19:41:59 +0000
commita84b48d01e3e77b754a6d4d7326e4a0c4faa10ab (patch)
treed2ea12ee5ac8101f8800d1f9fbaa3ccdb3621a94
parent2535fe5ad3327c8f77654a728986ca0afdf249f7 (diff)
downloadbcm5719-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.h7
-rw-r--r--openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu2
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();
}
OpenPOWER on IntegriCloud