diff --git a/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp b/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp --- a/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp @@ -239,7 +239,8 @@ LLDB_LOG_ERROR(log, type.takeError(), "Couldn't import type: {0}"); return std::nullopt; } - imported_args.push_back(TemplateArgument(*type)); + imported_args.push_back( + TemplateArgument(*type, /*isNullPtr*/ false, arg.getIsDefaulted())); break; } case TemplateArgument::Integral: { @@ -250,8 +251,8 @@ LLDB_LOG_ERROR(log, type.takeError(), "Couldn't import type: {0}"); return std::nullopt; } - imported_args.push_back( - TemplateArgument(d->getASTContext(), integral, *type)); + imported_args.push_back(TemplateArgument(d->getASTContext(), integral, + *type, arg.getIsDefaulted())); break; } default: