@@ -355,7 +355,7 @@ class GetKastVisitor
355
355
TALI->NumTemplateArgs ));
356
356
} else {
357
357
Kast::add (Kast::KApply (" TemplateSpecialization" , Sort::DECL, {Sort::ATYPE, Sort::DECL}));
358
- Kast::add (Kast::KApply (" TemplateSpecializationType " , Sort::ATYPE, {Sort::CID}));
358
+ Kast::add (Kast::KApply (" TemplateSpecializationType2 " , Sort::ATYPE, {Sort::CID}));
359
359
TRY_TO (TraverseDeclarationName (FTSI->getTemplate ()->getDeclName ()));
360
360
}
361
361
} else if (FTSI->getTemplateSpecializationKind () != TSK_Undeclared &&
@@ -378,7 +378,7 @@ class GetKastVisitor
378
378
} else {
379
379
Kast::add (Kast::KApply (" TemplateInstantiationDeclaration" , Sort::DECL, {Sort::ATYPE, Sort::DECL}));
380
380
}
381
- Kast::add (Kast::KApply (" TemplateSpecializationType " , Sort::ATYPE, {Sort::CID}));
381
+ Kast::add (Kast::KApply (" TemplateSpecializationType2 " , Sort::ATYPE, {Sort::CID}));
382
382
TRY_TO (TraverseDeclarationName (FTSI->getTemplate ()->getDeclName ()));
383
383
}
384
384
}
@@ -1070,7 +1070,13 @@ class GetKastVisitor
1070
1070
if (T->getSizeModifier () != clang::ArrayType::Normal) {
1071
1071
throw std::logic_error (" unimplemented: static/* array" );
1072
1072
}
1073
- Kast::add (Kast::KApply (" ArrayType" , Sort::ATYPE, {Sort::ATYPE, sort}));
1073
+ std::string arr;
1074
+ if (sort == Sort::AEXPR) {
1075
+ arr = " ArrayTypeAExpr" ;
1076
+ } else {
1077
+ arr = " ArrayType" ;
1078
+ }
1079
+ Kast::add (Kast::KApply (arr, Sort::ATYPE, {Sort::ATYPE, sort}));
1074
1080
TRY_TO (TraverseType (T->getElementType ()));
1075
1081
return true ;
1076
1082
}
0 commit comments