[clang] 5f5b942 - Correct typo introduced in f607884a04b0ca06951227a01d00bc59b948d337

via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 4 00:32:22 PST 2022


Author: serge-sans-paille
Date: 2022-12-04T09:32:00+01:00
New Revision: 5f5b942823474e98e43a27d515a87ce140396c53

URL: https://github.com/llvm/llvm-project/commit/5f5b942823474e98e43a27d515a87ce140396c53
DIFF: https://github.com/llvm/llvm-project/commit/5f5b942823474e98e43a27d515a87ce140396c53.diff

LOG: Correct typo introduced in f607884a04b0ca06951227a01d00bc59b948d337

Fix #59321

Added: 
    

Modified: 
    clang/lib/Basic/SourceManager.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp
index 44ced42c062e4..96f0c4217166b 100644
--- a/clang/lib/Basic/SourceManager.cpp
+++ b/clang/lib/Basic/SourceManager.cpp
@@ -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;


        


More information about the cfe-commits mailing list