Skip to content

Commit fba1f34

Browse files
committed
[cxx-interop] Remove dead logic in const import
We no longer try to import partial specializations of variables after 7797552.
1 parent 33a059f commit fba1f34

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4591,15 +4591,11 @@ namespace {
45914591
bool initIsEvaluatable = false;
45924592
if (Impl.SwiftContext.ClangImporterOpts.EnableConstValueImporting) {
45934593
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-
45984594
// Don't import values when type-dependent or value-dependent.
45994595
bool typeDependent = decl->getType()->isDependentType();
46004596
bool valueDependent = init->isValueDependent();
46014597

4602-
initIsEvaluatable = !partial && !typeDependent && !valueDependent;
4598+
initIsEvaluatable = !typeDependent && !valueDependent;
46034599
}
46044600
}
46054601

0 commit comments

Comments
 (0)