Skip to content

Commit 82b3e75

Browse files
authored
Merge pull request #66050 from al45tair/eng/PR-109649226-5.9
[Tools] Fix macro demangling.
2 parents c09a88f + 2a7c096 commit 82b3e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/swift-demangle/swift-demangle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static bool findMaybeMangled(llvm::StringRef input, llvm::StringRef &match) {
271271
} state = Start;
272272
const char *matchStart = nullptr;
273273

274-
// Find _T, $S, $s, _$S, _$s, @__swift_ followed by a valid mangled string
274+
// Find _T, $S, $s, _$S, _$s, @__swiftmacro_ followed by a valid mangled string
275275
while (ptr < end) {
276276
switch (state) {
277277
case Start:
@@ -289,7 +289,7 @@ static bool findMaybeMangled(llvm::StringRef input, llvm::StringRef &match) {
289289
} else if (ch == '@' &&
290290
llvm::StringRef(ptr, end - ptr).startswith("__swiftmacro_")){
291291
matchStart = ptr - 1;
292-
ptr = ptr + strlen("__swift_");
292+
ptr = ptr + strlen("__swiftmacro_");
293293
state = FoundPrefix;
294294
break;
295295
}

0 commit comments

Comments
 (0)