diff --git a/lib/Interpreter/DynamicLibraryManager.cpp b/lib/Interpreter/DynamicLibraryManager.cpp index 074a7bb7..983173c8 100644 --- a/lib/Interpreter/DynamicLibraryManager.cpp +++ b/lib/Interpreter/DynamicLibraryManager.cpp @@ -69,7 +69,7 @@ namespace cling { /// Example: substFront("@rpath/abc", "@rpath/", "/tmp") -> "/tmp/abc" static std::string substFront(llvm::StringRef original, llvm::StringRef pattern, llvm::StringRef replacement) { - if (!original.startswith_lower(pattern)) + if (!original.startswith_insensitive(pattern)) return original.str(); llvm::SmallString<512> result(replacement); result.append(original.drop_front(pattern.size())); @@ -307,7 +307,7 @@ namespace cling { // Subst all known linker variables ($origin, @rpath, etc.) #ifdef __APPLE__ // On MacOS @rpath is preplaced by all paths in RPATH one by one. - if (libStem.startswith_lower("@rpath")) { + if (libStem.startswith_insensitive("@rpath")) { for (auto& P : RPath) { std::string result = substFront(libStem, "@rpath", P); if (isSharedLibrary(result))