summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorAlexander Musman <alexander.musman@gmail.com>2014-03-27 15:14:18 +0000
committerAlexander Musman <alexander.musman@gmail.com>2014-03-27 15:14:18 +0000
commitfd2b75948df6e27820fb0e086e4c2bbb4fc9bd28 (patch)
tree0fc2d1fdd8457b3d618d2a9c1bb0840d9c90ac8c /clang/lib/AST/Stmt.cpp
parent64cf5a4eb2e762098f75ce479fc929bac35eb5eb (diff)
downloadbcm5719-llvm-fd2b75948df6e27820fb0e086e4c2bbb4fc9bd28.tar.gz
bcm5719-llvm-fd2b75948df6e27820fb0e086e4c2bbb4fc9bd28.zip
[OPENMP] OMPExecutableDirective re-factoring
Store the number of clauses and children of OMPExecutableDirective and dynamically compute the locations of corresponding arrays. http://llvm-reviews.chandlerc.com/D2977 llvm-svn: 204933
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r--clang/lib/AST/Stmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index 4c6318cc6ec..8da7956aed2 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/lib/AST/Stmt.cpp
@@ -1193,9 +1193,9 @@ OMPSharedClause *OMPSharedClause::CreateEmpty(const ASTContext &C,
}
void OMPExecutableDirective::setClauses(ArrayRef<OMPClause *> Clauses) {
- assert(Clauses.size() == this->Clauses.size() &&
+ assert(Clauses.size() == getNumClauses() &&
"Number of clauses is not the same as the preallocated buffer");
- std::copy(Clauses.begin(), Clauses.end(), this->Clauses.begin());
+ std::copy(Clauses.begin(), Clauses.end(), getClauses().begin());
}
OMPParallelDirective *OMPParallelDirective::Create(
OpenPOWER on IntegriCloud