forked from OSchip/llvm-project
[OPENMP]Fix caonical->canonical, NFC.
Fixed typo. llvm-svn: 373952
This commit is contained in:
parent
0db7b6a44c
commit
d457f7e080
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ class OMPLoopScope : public CodeGenFunction::RunCleanupsScope {
|
|||
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(const OMPLoopDirective &D,
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue