Skip to content

Commit 265884a

Browse files
committed
IRGen: repair a small regression on Windows
1 parent 452302e commit 265884a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,8 +1297,8 @@ IRGenModule::createStringConstant(StringRef Str, bool willBeRelativelyAddressed,
12971297
if (NAME) \
12981298
return NAME; \
12991299
NAME = Module.getOrInsertGlobal(SYM, FullExistentialTypeMetadataStructTy); \
1300-
if (!getSwiftModule()->isStdlibModule() || \
1301-
!getSwiftModule()->isStaticLibrary()) \
1300+
if (!getSwiftModule()->isStdlibModule() && \
1301+
!Context.getStdlibModule(true)->isStaticLibrary()) \
13021302
ApplyIRLinkage(IRLinkage::ExternalImport) \
13031303
.to(cast<llvm::GlobalVariable>(NAME)); \
13041304
return NAME; \

0 commit comments

Comments
 (0)