Skip to content

Commit 8880aae

Browse files
authored
Merge pull request swiftlang#26189 from gottesmm/pr-b9b32fb8a7d7d2e36221a60f2df930c90d3359d0
2 parents c54b30a + 610c903 commit 8880aae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SwiftDemangle/MangleHack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _swift_mangleSimpleClass(const char *module, const char *class_) {
5656
size_t moduleLength = strlen(module);
5757
size_t classLength = strlen(class_);
5858
char *value = nullptr;
59-
if (swift::STDLIB_NAME.compare(module) == 0) {
59+
if (swift::STDLIB_NAME == llvm::StringRef(module)) {
6060
int result = asprintf(&value, "_TtCs%zu%s", classLength, class_);
6161
assert(result > 0);
6262
(void)result;
@@ -75,7 +75,7 @@ _swift_mangleSimpleProtocol(const char *module, const char *protocol) {
7575
size_t moduleLength = strlen(module);
7676
size_t protocolLength = strlen(protocol);
7777
char *value = nullptr;
78-
if (swift::STDLIB_NAME.compare(module) == 0) {
78+
if (swift::STDLIB_NAME == llvm::StringRef(module)) {
7979
int result = asprintf(&value, "_TtPs%zu%s_", protocolLength, protocol);
8080
assert(result > 0);
8181
(void)result;

0 commit comments

Comments
 (0)