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 @@ -4591,15 +4591,11 @@ namespace {
4591
4591
bool initIsEvaluatable = false ;
4592
4592
if (Impl.SwiftContext .ClangImporterOpts .EnableConstValueImporting ) {
4593
4593
if (auto init = decl->getInit ()) {
4594
- // Don't import values for partial specializations. TODO: Should we
4595
- // stop importing partially specialized variables completely?
4596
- bool partial = isa<clang::VarTemplatePartialSpecializationDecl>(decl);
4597
-
4598
4594
// Don't import values when type-dependent or value-dependent.
4599
4595
bool typeDependent = decl->getType ()->isDependentType ();
4600
4596
bool valueDependent = init->isValueDependent ();
4601
4597
4602
- initIsEvaluatable = !partial && ! typeDependent && !valueDependent;
4598
+ initIsEvaluatable = !typeDependent && !valueDependent;
4603
4599
}
4604
4600
}
4605
4601
You can’t perform that action at this time.
0 commit comments