Skip to content

Commit 9bcef58

Browse files
committed
[OpenMP] Fix building for windows after adding omp_calloc
Differential Revision: https://reviews.llvm.org/D91478
1 parent 3b7f84d commit 9bcef58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openmp/runtime/tools/generate-def.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ (\%)
108108
foreach my $entry ( keys( %$entries ) ) {
109109
if ( not $entries->{ $entry }->{ obsolete } ) {
110110
my $ordinal = $entries->{ $entry }->{ ordinal };
111-
# omp_alloc and omp_free are C/C++ only functions, skip "1000+ordinal" for them
112-
if ( $entry =~ m{\A[ok]mp_} and $entry ne "omp_alloc" and $entry ne "omp_free" ) {
111+
# omp_alloc, omp_calloc and omp_free are C/C++ only functions, skip "1000+ordinal" for them
112+
if ( $entry =~ m{\A[ok]mp_} and $entry ne "omp_alloc" and $entry ne "omp_calloc" and $entry ne "omp_free" ) {
113113
if ( not defined( $ordinal ) ) {
114114
runtime_error(
115115
"Bad entry \"$entry\": ordinal number is not specified."

0 commit comments

Comments
 (0)