r373952 - [OPENMP]Fix caonical->canonical, NFC.
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 12:57:40 PDT 2019
Author: abataev
Date: Mon Oct 7 12:57:40 2019
New Revision: 373952
URL: http://llvm.org/viewvc/llvm-project?rev=373952&view=rev
Log:
[OPENMP]Fix caonical->canonical, NFC.
Fixed typo.
Modified:
cfe/trunk/include/clang/AST/StmtOpenMP.h
cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp
Modified: cfe/trunk/include/clang/AST/StmtOpenMP.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/StmtOpenMP.h?rev=373952&r1=373951&r2=373952&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/StmtOpenMP.h (original)
+++ cfe/trunk/include/clang/AST/StmtOpenMP.h Mon Oct 7 12:57:40 2019
@@ -1092,7 +1092,7 @@ public:
Body = For->getBody();
} else {
assert(isa<CXXForRangeStmt>(Body) &&
- "Expected caonical for loop or range-based for loop.");
+ "Expected canonical for loop or range-based for loop.");
Body = cast<CXXForRangeStmt>(Body)->getBody();
}
for (unsigned Cnt = 1; Cnt < CollapsedNum; ++Cnt) {
@@ -1101,7 +1101,7 @@ public:
Body = For->getBody();
} else {
assert(isa<CXXForRangeStmt>(Body) &&
- "Expected caonical for loop or range-based for loop.");
+ "Expected canonical for loop or range-based for loop.");
Body = cast<CXXForRangeStmt>(Body)->getBody();
}
}
Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp?rev=373952&r1=373951&r2=373952&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Mon Oct 7 12:57:40 2019
@@ -151,7 +151,7 @@ class OMPLoopScope : public CodeGenFunct
Body = For->getBody();
} else {
assert(isa<CXXForRangeStmt>(Body) &&
- "Expected caonical for loop or range-based for loop.");
+ "Expected canonical for loop or range-based for loop.");
auto *CXXFor = cast<CXXForRangeStmt>(Body);
if (const Stmt *Init = CXXFor->getInit())
CGF.EmitStmt(Init);
@@ -1377,7 +1377,7 @@ void CodeGenFunction::EmitOMPLoopBody(co
Body = For->getBody();
} else {
assert(isa<CXXForRangeStmt>(Body) &&
- "Expected caonical for loop or range-based for loop.");
+ "Expected canonical for loop or range-based for loop.");
auto *CXXFor = cast<CXXForRangeStmt>(Body);
EmitStmt(CXXFor->getLoopVarStmt());
Body = CXXFor->getBody();
More information about the cfe-commits
mailing list