[clang] c472c9f - [OpenACC] Remove mistakenly left over commented code from a previous

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 20 09:39:29 PDT 2024


Author: erichkeane
Date: 2024-09-20T09:39:25-07:00
New Revision: c472c9f367e8376fb5cb9bcc954d9c434ecd242a

URL: https://github.com/llvm/llvm-project/commit/c472c9f367e8376fb5cb9bcc954d9c434ecd242a
DIFF: https://github.com/llvm/llvm-project/commit/c472c9f367e8376fb5cb9bcc954d9c434ecd242a.diff

LOG: [OpenACC] Remove mistakenly left over commented code from a previous
commit

Added: 
    

Modified: 
    clang/lib/Sema/SemaOpenACC.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaOpenACC.cpp b/clang/lib/Sema/SemaOpenACC.cpp
index e1fc9cea1eb2b9..ecbcc19413dc61 100644
--- a/clang/lib/Sema/SemaOpenACC.cpp
+++ b/clang/lib/Sema/SemaOpenACC.cpp
@@ -1101,51 +1101,6 @@ SemaOpenACC::ActOnClause(ArrayRef<const OpenACCClause *> ExistingClauses,
 
   return Result;
 
-  //  switch (Clause.getClauseKind()) {
-  //  case OpenACCClauseKind::PresentOrCopy:
-  //  case OpenACCClauseKind::PCopy:
-  //    Diag(Clause.getBeginLoc(), diag::warn_acc_deprecated_alias_name)
-  //        << Clause.getClauseKind() << OpenACCClauseKind::Copy;
-  //    LLVM_FALLTHROUGH;
-  //  case OpenACCClauseKind::PresentOrCreate:
-  //  case OpenACCClauseKind::PCreate:
-  //    Diag(Clause.getBeginLoc(), diag::warn_acc_deprecated_alias_name)
-  //        << Clause.getClauseKind() << OpenACCClauseKind::Create;
-  //    LLVM_FALLTHROUGH;
-  //
-  //
-  //
-  //
-  //  case OpenACCClauseKind::DType:
-  //
-  //
-  //
-  //
-  //
-  //
-  //
-  //
-  //  case OpenACCClauseKind::Gang:
-  //  case OpenACCClauseKind::Worker:
-  //  case OpenACCClauseKind::Vector: {
-  //    // OpenACC 3.3 2.9:
-  //    // A 'gang', 'worker', or 'vector' clause may not appear if a 'seq'
-  //    clause
-  //    // appears.
-  //    const auto *Itr =
-  //        llvm::find_if(ExistingClauses, llvm::IsaPred<OpenACCSeqClause>);
-  //
-  //    if (Itr != ExistingClauses.end()) {
-  //      Diag(Clause.getBeginLoc(), diag::err_acc_clause_cannot_combine)
-  //          << Clause.getClauseKind() << (*Itr)->getClauseKind();
-  //      Diag((*Itr)->getBeginLoc(), diag::note_acc_previous_clause_here);
-  //    }
-  //    // Not yet implemented, so immediately drop to the 'not yet implemented'
-  //    // diagnostic.
-  //    break;
-  //  }
-  //  */
-
 }
 
 /// OpenACC 3.3 section 2.5.15:


        


More information about the cfe-commits mailing list