Skip to content

Commit 608bfd2

Browse files
committed
[OpenMP] to address the review comments to use template SimpleVLA.
1 parent 7f1cd55 commit 608bfd2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

openmp/runtime/src/ompt-general.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#if KMP_OS_UNIX
2424
#include <dlfcn.h>
2525
#endif
26+
#include "kmp_utils.h"
2627

2728
/*****************************************************************************
2829
* ompt include files
@@ -708,10 +709,7 @@ OMPT_API_ROUTINE int ompt_get_place_proc_ids(int place_num, int ids_size,
708709
return 0;
709710
#else
710711
int i, count;
711-
#ifdef __clang_major__ >= 18
712-
#pragma clang diagnostic ignored "-Wvla-cxx-extension"
713-
#endif
714-
int tmp_ids[ids_size];
712+
SimpleVLA<int> tmp_ids(ids_size);
715713
for (int j = 0; j < ids_size; j++)
716714
tmp_ids[j] = 0;
717715
if (!KMP_AFFINITY_CAPABLE())

0 commit comments

Comments
 (0)