Update LLVM (#3956)

Fix use of newly deprecated API
This commit is contained in:
Jon Ross-Perkins
2024-05-17 19:36:21 +00:00
committed by GitHub
parent ecb300ee5e
commit b19a87642b
3 changed files with 8 additions and 8 deletions
+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;