Skip to content

Commit 0424e89

Browse files
authored
[SYCL][NFC] Fix a few typos. (#1667)
Signed-off-by: Alexey Bader <[email protected]>
1 parent 9e79d31 commit 0424e89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ class FindPFWGLambdaFnVisitor
523523
const int NumPFWGLambdaArgs = 2; // group and lambda obj
524524
if (Call->getNumArgs() != NumPFWGLambdaArgs)
525525
return true;
526-
if (!Util::isSyclType(Call->getArg(1)->getType(), "group", true /*tmpl*/))
526+
if (!Util::isSyclType(Call->getArg(1)->getType(), "group", true /*Tmpl*/))
527527
return true;
528528
if (Call->getArg(0)->getType()->getAsCXXRecordDecl() != LambdaObjTy)
529529
return true;
@@ -766,7 +766,7 @@ template <typename Derived> class SyclKernelFieldHandler {
766766
SyclKernelFieldHandler(Sema &S) : SemaRef(S) {}
767767

768768
public:
769-
// Mark these virutal so that we can use override in the implementer classes,
769+
// Mark these virtual so that we can use override in the implementer classes,
770770
// despite virtual dispatch never being used.
771771

772772
// Accessor can be a base class or a field decl, so both must be handled.
@@ -794,7 +794,7 @@ template <typename Derived> class SyclKernelFieldHandler {
794794
virtual void leaveStruct(const CXXRecordDecl *, const CXXBaseSpecifier &) {}
795795
};
796796

797-
// A type to check the valididty of all of the argument types.
797+
// A type to check the validity of all of the argument types.
798798
class SyclKernelFieldChecker
799799
: public SyclKernelFieldHandler<SyclKernelFieldChecker> {
800800
bool IsInvalid = false;
@@ -900,7 +900,7 @@ class SyclKernelDeclCreator
900900

901901
static void setKernelImplicitAttrs(ASTContext &Context, FunctionDecl *FD,
902902
StringRef Name) {
903-
// Set implict attributes.
903+
// Set implicit attributes.
904904
FD->addAttr(OpenCLKernelAttr::CreateImplicit(Context));
905905
FD->addAttr(AsmLabelAttr::CreateImplicit(Context, Name));
906906
FD->addAttr(ArtificialAttr::CreateImplicit(Context));

0 commit comments

Comments
 (0)