diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/OpenMPClause.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/AST/OpenMPClause.cpp b/clang/lib/AST/OpenMPClause.cpp index 0b8aa883e18..68550a5cf99 100644 --- a/clang/lib/AST/OpenMPClause.cpp +++ b/clang/lib/AST/OpenMPClause.cpp @@ -222,12 +222,12 @@ void OMPOrderedClause::setLoopCounter(unsigned NumLoop, Expr *Counter) { getTrailingObjects<Expr *>()[NumberOfLoops + NumLoop] = Counter; } -Expr *OMPOrderedClause::getLoopCunter(unsigned NumLoop) { +Expr *OMPOrderedClause::getLoopCounter(unsigned NumLoop) { assert(NumLoop < NumberOfLoops && "out of loops number."); return getTrailingObjects<Expr *>()[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<Expr *>()[NumberOfLoops + NumLoop]; } diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index 354159ac33c..bbb15353420 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/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<DeclRefExpr>(C->getLoopCunter(I)); + const auto *DRE = cast<DeclRefExpr>(C->getLoopCounter(I)); const auto *VD = cast<VarDecl>(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<OMPCapturedExprDecl>( - cast<DeclRefExpr>(C->getLoopCunter(I))->getDecl())) { + cast<DeclRefExpr>(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/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 29c3c0ba918..c68f9abd47a 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/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 <E; ++I) - Record.AddStmt(C->getLoopCunter(I)); + Record.AddStmt(C->getLoopCounter(I)); Record.AddSourceLocation(C->getLParenLoc()); } |

