File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2510,8 +2510,7 @@ class SYCLKernelNameTypeVisitor
2510
2510
void Visit (const TemplateArgument &TA) {
2511
2511
if (TA.isNull ())
2512
2512
return ;
2513
- else
2514
- InnerTAVisitor::Visit (TA);
2513
+ InnerTAVisitor::Visit (TA);
2515
2514
}
2516
2515
2517
2516
void VisitEnumType (const EnumType *T) {
@@ -2533,7 +2532,7 @@ class SYCLKernelNameTypeVisitor
2533
2532
void VisitTagDecl (const TagDecl *Tag) {
2534
2533
bool UnnamedLambdaEnabled =
2535
2534
S.getASTContext ().getLangOpts ().SYCLUnnamedLambda ;
2536
- if (Tag && !Tag->getDeclContext ()->isTranslationUnit () &&
2535
+ if (!Tag->getDeclContext ()->isTranslationUnit () &&
2537
2536
!isa<NamespaceDecl>(Tag->getDeclContext ()) && !UnnamedLambdaEnabled) {
2538
2537
const bool KernelNameIsMissing = Tag->getName ().empty ();
2539
2538
if (KernelNameIsMissing) {
@@ -2559,14 +2558,12 @@ class SYCLKernelNameTypeVisitor
2559
2558
VisitEnumType (ET);
2560
2559
else
2561
2560
Visit (T);
2562
- return ;
2563
2561
}
2564
2562
2565
2563
void VisitIntegralTemplateArgument (const TemplateArgument &TA) {
2566
2564
QualType T = TA.getIntegralType ();
2567
2565
if (const EnumType *ET = T->getAs <EnumType>())
2568
2566
VisitEnumType (ET);
2569
- return ;
2570
2567
}
2571
2568
2572
2569
void VisitTemplateTemplateArgument (const TemplateArgument &TA) {
You can’t perform that action at this time.
0 commit comments