[OpenMP] Fix building for windows after adding omp_calloc
authorMartin Storsjö <martin@martin.st>
Sat, 14 Nov 2020 07:33:36 +0000 (09:33 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 15 Nov 2020 19:32:38 +0000 (21:32 +0200)
Differential Revision: https://reviews.llvm.org/D91478

openmp/runtime/tools/generate-def.pl

index 0298d72..b245387 100755 (executable)
@@ -108,8 +108,8 @@ sub process(\%) {
     foreach my $entry ( keys( %$entries ) ) {
         if ( not $entries->{ $entry }->{ obsolete } ) {
             my $ordinal = $entries->{ $entry }->{ ordinal };
-            # omp_alloc and omp_free are C/C++ only functions, skip "1000+ordinal" for them
-            if ( $entry =~ m{\A[ok]mp_} and $entry ne "omp_alloc" and $entry ne "omp_free" ) {
+            # omp_alloc, omp_calloc and omp_free are C/C++ only functions, skip "1000+ordinal" for them
+            if ( $entry =~ m{\A[ok]mp_} and $entry ne "omp_alloc" and $entry ne "omp_calloc" and $entry ne "omp_free" ) {
                 if ( not defined( $ordinal ) ) {
                     runtime_error(
                         "Bad entry \"$entry\": ordinal number is not specified."