forked from OSchip/llvm-project
[OpenMP] Fix building for windows after adding omp_calloc
Differential Revision: https://reviews.llvm.org/D91478
This commit is contained in:
parent
3b7f84d97f
commit
9bcef58b63
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue