From bfc65d4e52a9f00ebfc6bd8c87fe50c9f7c8067a Mon Sep 17 00:00:00 2001 From: Lily Vulcano Date: Tue, 11 Dec 2018 12:36:17 -0800 Subject: [PATCH] [DNM] Change the symbol for the default Swift CFString class. Required for the work in https://github.com/apple/swift-corelibs-foundation/pull/1799 --- lib/CodeGen/CodeGenModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 88c129a2cdc..63b0c582fc4 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -4050,8 +4050,8 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { case LangOptions::CoreFoundationABI::Swift: LLVM_FALLTHROUGH; case LangOptions::CoreFoundationABI::Swift5_0: CFConstantStringClassName = - Triple.isOSDarwin() ? "$s15SwiftFoundation19_NSCFConstantStringCN" - : "$s10Foundation19_NSCFConstantStringCN"; + Triple.isOSDarwin() ? "$s19SwiftFoundationSoil19_NSCFConstantStringCN" + : "$s14FoundationSoil19_NSCFConstantStringCN"; Ty = IntPtrTy; break; case LangOptions::CoreFoundationABI::Swift4_2: