@@ -9021,8 +9021,7 @@ Sema::CheckSpecializationInstantiationRedecl(SourceLocation NewLoc,
9021
9021
// The declaration itself has not actually been instantiated, so it is
9022
9022
// still okay to specialize it.
9023
9023
StripImplicitInstantiation (
9024
- PrevDecl,
9025
- Context.getTargetInfo ().getTriple ().isWindowsGNUEnvironment ());
9024
+ PrevDecl, Context.getTargetInfo ().getTriple ().isOSCygMing ());
9026
9025
return false ;
9027
9026
}
9028
9027
// Fall through
@@ -9892,7 +9891,7 @@ DeclResult Sema::ActOnExplicitInstantiation(
9892
9891
: TSK_ExplicitInstantiationDeclaration;
9893
9892
9894
9893
if (TSK == TSK_ExplicitInstantiationDeclaration &&
9895
- !Context.getTargetInfo ().getTriple ().isWindowsGNUEnvironment ()) {
9894
+ !Context.getTargetInfo ().getTriple ().isOSCygMing ()) {
9896
9895
// Check for dllexport class template instantiation declarations,
9897
9896
// except for MinGW mode.
9898
9897
for (const ParsedAttr &AL : Attr) {
@@ -9957,7 +9956,7 @@ DeclResult Sema::ActOnExplicitInstantiation(
9957
9956
= PrevDecl ? PrevDecl->getTemplateSpecializationKind () : TSK_Undeclared;
9958
9957
9959
9958
if (TSK == TSK_ExplicitInstantiationDefinition && PrevDecl != nullptr &&
9960
- Context.getTargetInfo ().getTriple ().isWindowsGNUEnvironment ()) {
9959
+ Context.getTargetInfo ().getTriple ().isOSCygMing ()) {
9961
9960
// Check for dllexport class template instantiation definitions in MinGW
9962
9961
// mode, if a previous declaration of the instantiation was seen.
9963
9962
for (const ParsedAttr &AL : Attr) {
@@ -10125,7 +10124,7 @@ DeclResult Sema::ActOnExplicitInstantiation(
10125
10124
// In MinGW mode, export the template instantiation if the declaration
10126
10125
// was marked dllexport.
10127
10126
if (PrevDecl_TSK == TSK_ExplicitInstantiationDeclaration &&
10128
- Context.getTargetInfo ().getTriple ().isWindowsGNUEnvironment () &&
10127
+ Context.getTargetInfo ().getTriple ().isOSCygMing () &&
10129
10128
PrevDecl->hasAttr <DLLExportAttr>()) {
10130
10129
dllExportImportClassTemplateSpecialization (*this , Def);
10131
10130
}
0 commit comments