diff options
Diffstat (limited to 'clang/Lex/PPExpressions.cpp')
| -rw-r--r-- | clang/Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Lex/PPExpressions.cpp b/clang/Lex/PPExpressions.cpp index f43243ea165..590c0eeeeff 100644 --- a/clang/Lex/PPExpressions.cpp +++ b/clang/Lex/PPExpressions.cpp @@ -161,7 +161,7 @@ static bool EvaluateValue(llvm::APSInt &Result, Token &PeekTok, if (Literal.hadError) return true; // a diagnostic was already reported. - if (Literal.isFloatingLiteral()) { + if (Literal.isFloatingLiteral() || Literal.isImaginary) { PP.Diag(PeekTok, diag::err_pp_illegal_floating_literal); return true; } |

