diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-02-28 20:06:02 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-02-28 20:06:02 +0000 |
commit | 35ddad07232f0fd3b5ba637983ac8eb45e457b75 (patch) | |
tree | a5ed8ce10aee986a995254a485b8a33f3008e933 /clang/lib/Lex/Lexer.cpp | |
parent | 3b0a866a4c646641cb9ecc290ebe60b4785ca741 (diff) | |
download | bcm5719-llvm-35ddad07232f0fd3b5ba637983ac8eb45e457b75.tar.gz bcm5719-llvm-35ddad07232f0fd3b5ba637983ac8eb45e457b75.zip |
Fix a minor bug in lexing pp-numbers with digit separators: if a pp-number contains "'e+", the pp-number ends between the 'e' and the '+'.
llvm-svn: 202533
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index cfa835d173d..2adc51e109d 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -1620,6 +1620,7 @@ bool Lexer::LexNumericConstant(Token &Result, const char *CurPtr) { if (!isLexingRawMode()) Diag(CurPtr, diag::warn_cxx11_compat_digit_separator); CurPtr = ConsumeChar(CurPtr, Size, Result); + CurPtr = ConsumeChar(CurPtr, NextSize, Result); return LexNumericConstant(Result, CurPtr); } } |