diff --git a/libcpp/lex.cc b/libcpp/lex.cc
index c9e44e6ccccf4fea9afedd5f7559881780c7c56e..de752bdc9c874901b594c59f2f8713114487f420 100644
--- a/libcpp/lex.cc
+++ b/libcpp/lex.cc
@@ -5038,7 +5038,7 @@ do_peek_prev (const unsigned char *peek, const unsigned char *bound)
 
   unsigned char c = *--peek;
   if (__builtin_expect (c == '\n', false)
-      || __builtin_expect (c == 'r', false))
+      || __builtin_expect (c == '\r', false))
     {
       if (peek == bound)
 	return peek;