File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11963,10 +11963,10 @@ void OpenACCClauseTransform<Derived>::VisitAttachClause(
11963
11963
llvm::SmallVector<Expr *> VarList = VisitVarList(C.getVarList());
11964
11964
11965
11965
// Ensure each var is a pointer type.
11966
- VarList.erase(std::remove_if (VarList.begin(), VarList.end() , [&](Expr *E) {
11966
+ llvm::erase_if (VarList, [&](Expr *E) {
11967
11967
return Self.getSema().OpenACC().CheckVarIsPointerType(
11968
11968
OpenACCClauseKind::Attach, E);
11969
- }), VarList.end()) ;
11969
+ });
11970
11970
11971
11971
ParsedClause.setVarListDetails(VarList,
11972
11972
/*IsReadOnly=*/false, /*IsZero=*/false);
@@ -12026,10 +12026,10 @@ void OpenACCClauseTransform<Derived>::VisitDevicePtrClause(
12026
12026
llvm::SmallVector<Expr *> VarList = VisitVarList(C.getVarList());
12027
12027
12028
12028
// Ensure each var is a pointer type.
12029
- VarList.erase(std::remove_if (VarList.begin(), VarList.end() , [&](Expr *E) {
12029
+ llvm::erase_if (VarList, [&](Expr *E) {
12030
12030
return Self.getSema().OpenACC().CheckVarIsPointerType(
12031
12031
OpenACCClauseKind::DevicePtr, E);
12032
- }), VarList.end()) ;
12032
+ });
12033
12033
12034
12034
ParsedClause.setVarListDetails(VarList,
12035
12035
/*IsReadOnly=*/false, /*IsZero=*/false);
You can’t perform that action at this time.
0 commit comments