aboutsummaryrefslogtreecommitdiff
path: root/Lex/PPExpressions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Lex/PPExpressions.cpp')
-rw-r--r--Lex/PPExpressions.cpp2
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;
}