Skip to content

Commit 4e80af9

Browse files
authored
Merge pull request #7659 from augusto2112/add-sym-static-lib
[lldb] Check for 2nd symbol in IsStaticSwiftRuntime
2 parents c100094 + 446bd76 commit 4e80af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ enum class RuntimeKind { Swift, ObjC };
120120

121121
/// Detect a statically linked Swift runtime by looking for a well-known symbol.
122122
static bool IsStaticSwiftRuntime(Module &image) {
123-
static ConstString swift_release_dealloc_sym("_swift_release_dealloc");
124-
return image.FindFirstSymbolWithNameAndType(swift_release_dealloc_sym);
123+
static ConstString swift_reflection_version_sym("swift_release");
124+
return image.FindFirstSymbolWithNameAndType(swift_reflection_version_sym);
125125
}
126126

127127
/// \return the Swift or Objective-C runtime found in the loaded images.

0 commit comments

Comments
 (0)