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(
1196311963 llvm::SmallVector<Expr *> VarList = VisitVarList(C.getVarList());
1196411964
1196511965 // 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) {
1196711967 return Self.getSema().OpenACC().CheckVarIsPointerType(
1196811968 OpenACCClauseKind::Attach, E);
11969- }), VarList.end()) ;
11969+ });
1197011970
1197111971 ParsedClause.setVarListDetails(VarList,
1197211972 /*IsReadOnly=*/false, /*IsZero=*/false);
@@ -12026,10 +12026,10 @@ void OpenACCClauseTransform<Derived>::VisitDevicePtrClause(
1202612026 llvm::SmallVector<Expr *> VarList = VisitVarList(C.getVarList());
1202712027
1202812028 // 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) {
1203012030 return Self.getSema().OpenACC().CheckVarIsPointerType(
1203112031 OpenACCClauseKind::DevicePtr, E);
12032- }), VarList.end()) ;
12032+ });
1203312033
1203412034 ParsedClause.setVarListDetails(VarList,
1203512035 /*IsReadOnly=*/false, /*IsZero=*/false);
You can’t perform that action at this time.
0 commit comments