summaryrefslogtreecommitdiffstats
path: root/clang/Lex/Lexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Lex/Lexer.cpp')
-rw-r--r--clang/Lex/Lexer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/Lex/Lexer.cpp b/clang/Lex/Lexer.cpp
index 7b4cbd7962d..cc45e1224a6 100644
--- a/clang/Lex/Lexer.cpp
+++ b/clang/Lex/Lexer.cpp
@@ -1394,9 +1394,8 @@ LexNextToken:
return LexIdentifier(Result, CurPtr);
}
- if (!LexingRawMode) Diag(CurPtr-1, diag::err_stray_character);
- BufferPtr = CurPtr;
- goto LexNextToken; // GCC isn't tail call eliminating.
+ Result.SetKind(tok::unknown);
+ break;
}
// Notify MIOpt that we read a non-whitespace/non-comment token.
OpenPOWER on IntegriCloud