summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-10-14 16:44:01 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-10-14 16:44:01 +0000
commita27e109d301df9275389883a9ecccd54eda18078 (patch)
tree569a06bff90c8d0e4404b6ffad2e475e262524f2 /include
parent26738403adf29b5bb67b47a6de6f4c9e92ba6aa5 (diff)
downloadclang-a27e109d301df9275389883a9ecccd54eda18078.tar.gz
[OPENMP]Fix codegen for private variably length vars in combined
constructs. If OpenMP construct includes several capturing regions and the variable is declared as private, the length of the inner variable length array is not captured in outer captured regions, only in the innermost region. Patch fixes this bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Sema/Sema.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h
index 0b8270dc23..212098e02b 100644
--- a/include/clang/Sema/Sema.h
+++ b/include/clang/Sema/Sema.h
@@ -9067,6 +9067,10 @@ private:
void adjustOpenMPTargetScopeIndex(unsigned &FunctionScopesIndex,
unsigned Level) const;
+ /// Returns the number of scopes associated with the construct on the given
+ /// OpenMP level.
+ int getNumberOfConstructScopes(unsigned Level) const;
+
/// Push new OpenMP function region for non-capturing function.
void pushOpenMPFunctionRegion();