Skip to content

Commit 84d8ace

Browse files
committed
[OpenMP][Obvious] Fix function prototype when used in C mode
Summary: The `llvm_omp_target_dynamic_shared_alloc` prototype in `omp.h` accidentally left the void argument unspecified. This created unintended code when called from the C language, causing some `nvlink` failures in certain scenarios.
1 parent 62ae549 commit 84d8ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/runtime/src/include/omp.h.var

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
extern int __KAI_KMPC_CONVENTION omp_in_explicit_task(void);
503503

504504
/* LLVM Extensions */
505-
extern void *llvm_omp_target_dynamic_shared_alloc();
505+
extern void *llvm_omp_target_dynamic_shared_alloc(void);
506506

507507
# undef __KAI_KMPC_CONVENTION
508508
# undef __KMP_IMP

0 commit comments

Comments
 (0)