Skip to content

Commit c472c9f

Browse files
committed
[OpenACC] Remove mistakenly left over commented code from a previous
commit
1 parent 33bc6cf commit c472c9f

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

clang/lib/Sema/SemaOpenACC.cpp

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,51 +1101,6 @@ SemaOpenACC::ActOnClause(ArrayRef<const OpenACCClause *> ExistingClauses,
11011101

11021102
return Result;
11031103

1104-
// switch (Clause.getClauseKind()) {
1105-
// case OpenACCClauseKind::PresentOrCopy:
1106-
// case OpenACCClauseKind::PCopy:
1107-
// Diag(Clause.getBeginLoc(), diag::warn_acc_deprecated_alias_name)
1108-
// << Clause.getClauseKind() << OpenACCClauseKind::Copy;
1109-
// LLVM_FALLTHROUGH;
1110-
// case OpenACCClauseKind::PresentOrCreate:
1111-
// case OpenACCClauseKind::PCreate:
1112-
// Diag(Clause.getBeginLoc(), diag::warn_acc_deprecated_alias_name)
1113-
// << Clause.getClauseKind() << OpenACCClauseKind::Create;
1114-
// LLVM_FALLTHROUGH;
1115-
//
1116-
//
1117-
//
1118-
//
1119-
// case OpenACCClauseKind::DType:
1120-
//
1121-
//
1122-
//
1123-
//
1124-
//
1125-
//
1126-
//
1127-
//
1128-
// case OpenACCClauseKind::Gang:
1129-
// case OpenACCClauseKind::Worker:
1130-
// case OpenACCClauseKind::Vector: {
1131-
// // OpenACC 3.3 2.9:
1132-
// // A 'gang', 'worker', or 'vector' clause may not appear if a 'seq'
1133-
// clause
1134-
// // appears.
1135-
// const auto *Itr =
1136-
// llvm::find_if(ExistingClauses, llvm::IsaPred<OpenACCSeqClause>);
1137-
//
1138-
// if (Itr != ExistingClauses.end()) {
1139-
// Diag(Clause.getBeginLoc(), diag::err_acc_clause_cannot_combine)
1140-
// << Clause.getClauseKind() << (*Itr)->getClauseKind();
1141-
// Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here);
1142-
// }
1143-
// // Not yet implemented, so immediately drop to the 'not yet implemented'
1144-
// // diagnostic.
1145-
// break;
1146-
// }
1147-
// */
1148-
11491104
}
11501105

11511106
/// OpenACC 3.3 section 2.5.15:

0 commit comments

Comments
 (0)