Update LLVM (#3956)

Fix use of newly deprecated API
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-05-17 19:36:21 +00:00
1 parent ecb300ee5e
commit b19a87642b
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ auto UnescapeStringLiteral(llvm::StringRef source, const int hashtag_num,
while (i < source.size()) {
char c = source[i];
if (i + hashtag_num < source.size() &&
source.slice(i, i + hashtag_num + 1).equals(escape)) {
source.slice(i, i + hashtag_num + 1) == escape) {
i += hashtag_num + 1;
if (i == source.size()) {
return std::nullopt;