diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-26 03:29:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-26 03:29:23 +0000 |
commit | 6e400c286b485e28d04a742ea87860ddfefa672e (patch) | |
tree | b1b7d5808515dc322a5966206e29254ffb120946 /Lex/PPExpressions.cpp | |
parent | 506b8dec4ed3db3c60bf9e0dd37901f0cf3d6749 (diff) |
1.0 is double, 1.0F is a float.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/PPExpressions.cpp')
-rw-r--r-- | Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lex/PPExpressions.cpp b/Lex/PPExpressions.cpp index f43243ea16..590c0eeeef 100644 --- a/Lex/PPExpressions.cpp +++ b/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; } |