mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 20:45:53 -04:00

access, by Erich Keane OpenMP creates a variable array type with a a null size-expr. The Debug generation failed to due to this. This patch corrects the openmp implementation, updates the tests, and adds a new one for this condition. Differential Revision: https://reviews.llvm.org/D25373 llvm-svn: 284110
14 lines
292 B
C++
14 lines
292 B
C++
// RUN: %clang_cc1 -fopenmp -x c++ %s -verify -debug-info-kind=limited -emit-llvm -o - | FileCheck %s
|
|
// expected-no-diagnostics
|
|
|
|
void f(int m) {
|
|
int i;
|
|
int cen[m];
|
|
#pragma omp parallel for
|
|
for (i = 0; i < m; ++i) {
|
|
cen[i] = i;
|
|
}
|
|
}
|
|
|
|
// CHECK: !DILocalVariable(name: "cen", arg: 6
|