Skip to content

Commit 21f0aaa

Browse files
committed
[SYCL] Fix typos in comments
Signed-off-by: Mariya Podchishchaeva <[email protected]>
1 parent a6328b2 commit 21f0aaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static CompoundStmt *CreateOpenCLKernelBody(Sema &S,
508508
std::advance(KernelFuncParam, NumParams - 1);
509509

510510
DeclAccessPair FieldDAP = DeclAccessPair::make(Field, AS_none);
511-
// [kenrel_obj or wrapper object].special_obj
511+
// [kernel_obj or wrapper object].special_obj
512512
auto SpecialObjME = MemberExpr::Create(
513513
S.Context, Base, false, SourceLocation(), NestedNameSpecifierLoc(),
514514
SourceLocation(), Field, FieldDAP,
@@ -539,7 +539,7 @@ static CompoundStmt *CreateOpenCLKernelBody(Sema &S,
539539
ParamStmts.push_back(getExprForKernelParameter(
540540
S, (*(ParamItr++))->getOriginalType(), ParamDREs[I]));
541541
}
542-
// [kenrel_obj or wrapper object].accessor.__init(_ValueType*,
542+
// [kernel_obj or wrapper object].accessor.__init(_ValueType*,
543543
// range<int>, range<int>, id<int>)
544544
CXXMemberCallExpr *Call = CXXMemberCallExpr::Create(
545545
S.Context, ME, ParamStmts, ResultTy, VK, SourceLocation());
@@ -780,7 +780,7 @@ static void populateIntHeader(SYCLIntegrationHeader &H, const StringRef Name,
780780
auto populateHeaderForAccessor = [&](const QualType &ArgTy, uint64_t Offset) {
781781
// The parameter is a SYCL accessor object.
782782
// The Info field of the parameter descriptor for accessor contains
783-
// two template parameters packed into thid integer field:
783+
// two template parameters packed into an integer field:
784784
// - target (e.g. global_buffer, constant_buffer, local);
785785
// - dimension of the accessor.
786786
const auto *AccTy = ArgTy->getAsCXXRecordDecl();

0 commit comments

Comments
 (0)