forked from OSchip/llvm-project
parent
079402d1c1
commit
e5d1a405b8
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue