mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: repair a small regression on Windows (#78689)
Correct the IRGen for the standard library. The thinko here assumed that the else case would be evaluated for the standard library build. We ended up incorrectly handling the well-known VWTs from the runtime when building the standard library.
This commit is contained in:
committed by
GitHub
parent
f753db23a9
commit
370cbca889
@@ -1297,8 +1297,8 @@ IRGenModule::createStringConstant(StringRef Str, bool willBeRelativelyAddressed,
|
||||
if (NAME) \
|
||||
return NAME; \
|
||||
NAME = Module.getOrInsertGlobal(SYM, FullExistentialTypeMetadataStructTy); \
|
||||
if (!getSwiftModule()->isStdlibModule() || \
|
||||
!getSwiftModule()->isStaticLibrary()) \
|
||||
if (!getSwiftModule()->isStdlibModule() && \
|
||||
!Context.getStdlibModule(true)->isStaticLibrary()) \
|
||||
ApplyIRLinkage(IRLinkage::ExternalImport) \
|
||||
.to(cast<llvm::GlobalVariable>(NAME)); \
|
||||
return NAME; \
|
||||
|
||||
Reference in New Issue
Block a user