diff --git a/lib/ClangImporter/ImportDecl.cpp b/lib/ClangImporter/ImportDecl.cpp index b951a3357a6ba..304bc5b140fe0 100644 --- a/lib/ClangImporter/ImportDecl.cpp +++ b/lib/ClangImporter/ImportDecl.cpp @@ -4591,15 +4591,11 @@ namespace { bool initIsEvaluatable = false; if (Impl.SwiftContext.ClangImporterOpts.EnableConstValueImporting) { if (auto init = decl->getInit()) { - // Don't import values for partial specializations. TODO: Should we - // stop importing partially specialized variables completely? - bool partial = isa(decl); - // Don't import values when type-dependent or value-dependent. bool typeDependent = decl->getType()->isDependentType(); bool valueDependent = init->isValueDependent(); - initIsEvaluatable = !partial && !typeDependent && !valueDependent; + initIsEvaluatable = !typeDependent && !valueDependent; } }