[OPENMP]Fix caonical->canonical, NFC.

Fixed typo.

llvm-svn: 373952
This commit is contained in:
Alexey Bataev 2019-10-07 19:57:40 +00:00
parent 0db7b6a44c
commit d457f7e080
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}
}

View File

@ -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();