diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-10-26 03:16:16 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2018-10-26 03:16:16 +0000 |
commit | 98ac9984b0ffecb050eb3d70ca0c1132e797b3f1 (patch) | |
tree | 963861eb5fe0948282ebf02881afcc7b1055fa78 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5300c2e0eaf2bd3062ad51c3c11a7407ef393199 (diff) | |
download | bcm5719-llvm-98ac9984b0ffecb050eb3d70ca0c1132e797b3f1.tar.gz bcm5719-llvm-98ac9984b0ffecb050eb3d70ca0c1132e797b3f1.zip |
CodeGen: correct the case for swift 4.2, 5.0
This corrects the leader for the swift names. The encoding for 4.2 and
5.0 differ by a single bit on the second character and were swapped.
llvm-svn: 345360
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9192d860ade..e889b9ff328 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -4173,14 +4173,14 @@ 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() ? "$s15SwiftFoundation19_NSCFConstantStringCN" + : "$s10Foundation19_NSCFConstantStringCN"; Ty = IntPtrTy; break; case LangOptions::CoreFoundationABI::Swift4_2: CFConstantStringClassName = - Triple.isOSDarwin() ? "$s15SwiftFoundation19_NSCFConstantStringCN" - : "$s10Foundation19_NSCFConstantStringCN"; + Triple.isOSDarwin() ? "$S15SwiftFoundation19_NSCFConstantStringCN" + : "$S10Foundation19_NSCFConstantStringCN"; Ty = IntPtrTy; break; case LangOptions::CoreFoundationABI::Swift4_1: |