Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lld/MachO/ObjC.cpp')
-rw-r--r--lld/MachO/ObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp
index 3c40c5d7181b..fbc129cf6589 100644
--- a/lld/MachO/ObjC.cpp
+++ b/lld/MachO/ObjC.cpp
@@ -40,7 +40,7 @@ template <class LP> static bool objectHasObjCSection(MemoryBufferRef mb) {
if ((segname == segment_names::data &&
sectname == section_names::objcCatList) ||
(segname == segment_names::text &&
- sectname == section_names::swift)) {
+ sectname.startswith(section_names::swift))) {
return true;
}
}