summaryrefslogtreecommitdiffstats
path: root/lib/Lex/PPExpressions.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-07-26 00:06:45 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-07-26 00:06:45 +0000
commit34f3bcf7f2907f618f7a10d919bda47e53db60dd (patch)
treeef8a2fdb9b2d0c9497d5fc8a0d45bab1bc38cc14 /lib/Lex/PPExpressions.cpp
parent6931b4da1f586d72d26773b57c55fb18da641566 (diff)
Partially revert r186903.
It turns out that Plum Hall depends on us not emitting an error on integer literals which fit into long long, but fit into unsigned long long. So C99 conformance requires not conforming to C99. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPExpressions.cpp')
-rw-r--r--lib/Lex/PPExpressions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPExpressions.cpp b/lib/Lex/PPExpressions.cpp
index 5cba35b2af..87c0a6ace6 100644
--- a/lib/Lex/PPExpressions.cpp
+++ b/lib/Lex/PPExpressions.cpp
@@ -259,7 +259,7 @@ static bool EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT,
if (!Literal.isUnsigned && Result.Val.isNegative()) {
// Don't warn for a hex or octal literal: 0x8000..0 shouldn't warn.
if (ValueLive && Literal.getRadix() == 10)
- PP.Diag(PeekTok, diag::err_integer_too_large_for_signed);
+ PP.Diag(PeekTok, diag::warn_integer_too_large_for_signed);
Result.Val.setIsUnsigned(true);
}
}