From f9cd06406d14c464d6a3d9c29b5bb508dd57ab8f Mon Sep 17 00:00:00 2001 From: Mike Rice Date: Thu, 20 Sep 2018 17:19:41 +0000 Subject: [PATCH] [OPENMP] Fix spelling of getLoopCounter (NFC) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342666 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/OpenMPClause.h | 4 ++-- lib/AST/OpenMPClause.cpp | 4 ++-- lib/CodeGen/CGStmtOpenMP.cpp | 4 ++-- lib/Serialization/ASTWriter.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/clang/AST/OpenMPClause.h b/include/clang/AST/OpenMPClause.h index f6e0c85267..77118cc3f4 100644 --- a/include/clang/AST/OpenMPClause.h +++ b/include/clang/AST/OpenMPClause.h @@ -990,8 +990,8 @@ public: /// Set loop counter for the specified loop. void setLoopCounter(unsigned NumLoop, Expr *Counter); /// Get loops counter for the specified loop. - Expr *getLoopCunter(unsigned NumLoop); - const Expr *getLoopCunter(unsigned NumLoop) const; + Expr *getLoopCounter(unsigned NumLoop); + const Expr *getLoopCounter(unsigned NumLoop) const; child_range children() { return child_range(&NumForLoops, &NumForLoops + 1); } diff --git a/lib/AST/OpenMPClause.cpp b/lib/AST/OpenMPClause.cpp index 0b8aa883e1..68550a5cf9 100644 --- a/lib/AST/OpenMPClause.cpp +++ b/lib/AST/OpenMPClause.cpp @@ -222,12 +222,12 @@ void OMPOrderedClause::setLoopCounter(unsigned NumLoop, Expr *Counter) { getTrailingObjects()[NumberOfLoops + NumLoop] = Counter; } -Expr *OMPOrderedClause::getLoopCunter(unsigned NumLoop) { +Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) { assert(NumLoop < NumberOfLoops && "out of loops number."); return getTrailingObjects()[NumberOfLoops + NumLoop]; } -const Expr *OMPOrderedClause::getLoopCunter(unsigned NumLoop) const { +const Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) const { assert(NumLoop < NumberOfLoops && "out of loops number."); return getTrailingObjects()[NumberOfLoops + NumLoop]; } diff --git a/lib/CodeGen/CGStmtOpenMP.cpp b/lib/CodeGen/CGStmtOpenMP.cpp index 354159ac33..bbb1535342 100644 --- a/lib/CodeGen/CGStmtOpenMP.cpp +++ b/lib/CodeGen/CGStmtOpenMP.cpp @@ -1516,7 +1516,7 @@ void CodeGenFunction::EmitOMPPrivateLoopCounters( for (unsigned I = S.getCollapsedNumber(), E = C->getLoopNumIterations().size(); I < E; ++I) { - const auto *DRE = cast(C->getLoopCunter(I)); + const auto *DRE = cast(C->getLoopCounter(I)); const auto *VD = cast(DRE->getDecl()); // Override only those variables that are really emitted already. if (LocalDeclMap.count(VD)) { @@ -4966,7 +4966,7 @@ void CodeGenFunction::EmitSimpleOMPExecutableDirective( E = C->getLoopNumIterations().size(); I < E; ++I) { if (const auto *VD = dyn_cast( - cast(C->getLoopCunter(I))->getDecl())) { + cast(C->getLoopCounter(I))->getDecl())) { // Emit only those that were not explicitly referenced in clauses. if (!CGF.LocalDeclMap.count(VD)) CGF.EmitVarDecl(*VD); diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 29c3c0ba91..c68f9abd47 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -6555,7 +6555,7 @@ void OMPClauseWriter::VisitOMPOrderedClause(OMPOrderedClause *C) { for (Expr *NumIter : C->getLoopNumIterations()) Record.AddStmt(NumIter); for (unsigned I = 0, E = C->getLoopNumIterations().size(); I getLoopCunter(I)); + Record.AddStmt(C->getLoopCounter(I)); Record.AddSourceLocation(C->getLParenLoc()); } -- 2.50.1