We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66c7af2 commit e2164b6Copy full SHA for e2164b6
lib/Interpreter/DynamicLibraryManager.cpp
@@ -69,12 +69,14 @@ namespace Cpp {
69
for (const std::string& P : SysPaths)
70
addSearchPath(P, /*IsUser*/ false);
71
}
72
-
+ #if LLVM_VERSION_MAJOR < 18
73
+ #define starts_with_insensitive startswith_insensitive
74
+ #endif
75
///\returns substitution of pattern in the front of original with replacement
76
/// Example: substFront("@rpath/abc", "@rpath/", "/tmp") -> "/tmp/abc"
77
static std::string substFront(StringRef original, StringRef pattern,
78
StringRef replacement) {
- if (!original.startswith_insensitive(pattern))
79
+ if (!original.starts_with_insensitive(pattern))
80
return original.str();
81
SmallString<512> result(replacement);
82
result.append(original.drop_front(pattern.size()));
0 commit comments