Fix r173881 to properly skip invalid UTF-8 characters in raw lexing and -E.
This caused hangs as we processed the same invalid byte over and over.
<rdar://problem/13115651>
llvm-svn: 173959
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index 6a918d6..4b5a313 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -3538,6 +3538,7 @@
return LexUnicode(Result, CodePoint, CurPtr);
if (isLexingRawMode() || PP->isPreprocessedOutput()) {
+ ++CurPtr;
Kind = tok::unknown;
break;
}