This caused hangs as we processed the same invalid byte over and over.
<rdar://problem/
13115651>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173959
91177308-0d34-0410-b5e6-
96231b3b80d8
return LexUnicode(Result, CodePoint, CurPtr);
if (isLexingRawMode() || PP->isPreprocessedOutput()) {
+ ++CurPtr;
Kind = tok::unknown;
break;
}
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -E %s -o /dev/null
// Note: this file contains invalid UTF-8 before the variable name in the
// next line. Please do not fix!
extern int \82x; // expected-error{{source file is not valid UTF-8}}
+
+#if 0
+// Don't warn about bad UTF-8 in raw lexing mode.
+extern int \82x;
+#endif