Correct typo introduced in f607884a04b0ca06951227a01d00bc59b948d337
authorserge-sans-paille <sguelton@mozilla.com>
Sat, 3 Dec 2022 21:23:44 +0000 (22:23 +0100)
committerserge-sans-paille <sguelton@mozilla.com>
Sun, 4 Dec 2022 08:32:00 +0000 (09:32 +0100)
Fix #59321

clang/lib/Basic/SourceManager.cpp

index 44ced42..96f0c42 100644 (file)
@@ -1309,7 +1309,7 @@ LineOffsetMapping LineOffsetMapping::get(llvm::MemoryBufferRef Buffer,
       Buf += N / 8 + 1;
       unsigned char Byte = Word;
       switch (Byte) {
-      case 'r':
+      case '\r':
         // If this is \r\n, skip both characters.
         if (*Buf == '\n') {
           ++Buf;