[OPENMP] Small update for C++11

llvm-svn: 205506
This commit is contained in:
Alexey Bataev 2014-04-03 02:55:46 +00:00
parent 079402d1c1
commit e5d1a405b8
2 changed files with 4 additions and 8 deletions

View File

@ -6439,10 +6439,8 @@ OMPClause *
TreeTransform<Derived>::TransformOMPCopyinClause(OMPCopyinClause *C) {
llvm::SmallVector<Expr *, 16> Vars;
Vars.reserve(C->varlist_size());
for (OMPCopyinClause::varlist_iterator I = C->varlist_begin(),
E = C->varlist_end();
I != E; ++I) {
ExprResult EVar = getDerived().TransformExpr(cast<Expr>(*I));
for (auto *I : C->varlists()) {
ExprResult EVar = getDerived().TransformExpr(cast<Expr>(I));
if (EVar.isInvalid())
return 0;
Vars.push_back(EVar.take());

View File

@ -1719,10 +1719,8 @@ void OMPClauseWriter::VisitOMPSharedClause(OMPSharedClause *C) {
void OMPClauseWriter::VisitOMPCopyinClause(OMPCopyinClause *C) {
Record.push_back(C->varlist_size());
Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record);
for (OMPCopyinClause::varlist_iterator I = C->varlist_begin(),
E = C->varlist_end();
I != E; ++I)
Writer->Writer.AddStmt(*I);
for (auto *I : C->varlists())
Writer->Writer.AddStmt(I);
}
//===----------------------------------------------------------------------===//