File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4604,15 +4604,11 @@ namespace {
4604
4604
bool initIsEvaluatable = false ;
4605
4605
if (Impl.SwiftContext .ClangImporterOpts .EnableConstValueImporting ) {
4606
4606
if (auto init = decl->getInit ()) {
4607
- // Don't import values for partial specializations. TODO: Should we
4608
- // stop importing partially specialized variables completely?
4609
- bool partial = isa<clang::VarTemplatePartialSpecializationDecl>(decl);
4610
-
4611
4607
// Don't import values when type-dependent or value-dependent.
4612
4608
bool typeDependent = decl->getType ()->isDependentType ();
4613
4609
bool valueDependent = init->isValueDependent ();
4614
4610
4615
- initIsEvaluatable = !partial && ! typeDependent && !valueDependent;
4611
+ initIsEvaluatable = !typeDependent && !valueDependent;
4616
4612
}
4617
4613
}
4618
4614
You can’t perform that action at this time.
0 commit comments