Skip to content

Commit 54722a7

Browse files
committed
Target: explicitly convert StringRef to std::string
This has changed in upstream LLVM and `StringRef` is no longer implicitly convertible to `std::string`. Adjust the invocation to allow the rebranched lldb to build.
1 parent 0d2b23a commit 54722a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/source/Target/SwiftLanguageRuntime.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,12 @@ static bool HasReflectionInfo(ObjectFile *obj_file) {
333333
swift::ReflectionSectionKind::reflstr);
334334

335335
bool hasReflectionSection = false;
336-
hasReflectionSection |= findSectionInObject(field_md);
337-
hasReflectionSection |= findSectionInObject(assocty);
338-
hasReflectionSection |= findSectionInObject(builtin);
339-
hasReflectionSection |= findSectionInObject(capture);
340-
hasReflectionSection |= findSectionInObject(typeref);
341-
hasReflectionSection |= findSectionInObject(reflstr);
336+
hasReflectionSection |= findSectionInObject(field_md.str());
337+
hasReflectionSection |= findSectionInObject(assocty.str());
338+
hasReflectionSection |= findSectionInObject(builtin.str());
339+
hasReflectionSection |= findSectionInObject(capture.str());
340+
hasReflectionSection |= findSectionInObject(typeref.str());
341+
hasReflectionSection |= findSectionInObject(reflstr.str());
342342
return hasReflectionSection;
343343
}
344344

0 commit comments

Comments
 (0)