File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -895,8 +895,8 @@ ClangTypeConverter::getClangTemplateArguments(
895
895
auto templateParam = cast<clang::TemplateTypeParmDecl>(param);
896
896
// We must have found a defaulted parameter at the end of the list.
897
897
if (templateParam->getIndex () >= genericArgs.size ()) {
898
- templateArgs.push_back (
899
- clang::TemplateArgument ( templateParam->getDefaultArgument ()));
898
+ templateArgs.push_back (clang::TemplateArgument (
899
+ templateParam->getDefaultArgument (). getArgument ()));
900
900
continue ;
901
901
}
902
902
Original file line number Diff line number Diff line change @@ -3457,8 +3457,9 @@ namespace {
3457
3457
// parameters when the function template is instantiated, so do not
3458
3458
// import the function template if the template parameter has
3459
3459
// dependent default value.
3460
- auto defaultArgumentType = templateTypeParam->getDefaultArgument ();
3461
- if (defaultArgumentType->isDependentType ())
3460
+ auto &defaultArgument =
3461
+ templateTypeParam->getDefaultArgument ().getArgument ();
3462
+ if (defaultArgument.isDependent ())
3462
3463
return nullptr ;
3463
3464
continue ;
3464
3465
}
You can’t perform that action at this time.
0 commit comments