depot/pkgs/by-name/li/libtapi/0003-Match-designator-order-with-declaration-order.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

28 lines
957 B
Diff

From b69038edb2e0ace9128407ab3ee7bc1001ffd751 Mon Sep 17 00:00:00 2001
From: Randy Eckenrode <randy@largeandhighquality.com>
Date: Sun, 7 Apr 2024 19:23:24 -0400
Subject: [PATCH 3/3] Match designator order with declaration order
---
lib/Core/Demangler.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tapi/lib/Core/Demangler.cpp b/tapi/lib/Core/Demangler.cpp
index d85899a..f5c485a 100644
--- a/tapi/lib/Core/Demangler.cpp
+++ b/tapi/lib/Core/Demangler.cpp
@@ -30,9 +30,10 @@ bool Demangler::isItaniumEncoding(StringRef mangledName) {
return mangledName.startswith("_Z") || mangledName.startswith("___Z");
}
+
DemangledName Demangler::demangle(StringRef mangledName) {
DemangledName result{
- .str = mangledName.str(), .isSwift = false, .isItanium = false};
+ .str = mangledName.str(), .isItanium = false, .isSwift = false};
char *demangled = nullptr;
if (isItaniumEncoding(mangledName)) {
--
2.42.0