summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPExpressions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-04 23:38:48 +0000
committerChris Lattner <sabre@nondot.org>2008-05-04 23:38:48 +0000
commit4af72c76dd58c22563af0f96b778249ad69f3e79 (patch)
tree257e8b9b547449d9777dd9f6ce31bb57385518fe /clang/lib/Lex/PPExpressions.cpp
parent9205c8562c7dc2dd01e637a411e6416d93786c98 (diff)
downloadbcm5719-llvm-4af72c76dd58c22563af0f96b778249ad69f3e79.tar.gz
bcm5719-llvm-4af72c76dd58c22563af0f96b778249ad69f3e79.zip
Neil points out that commas don't do UACs either.
llvm-svn: 50631
Diffstat (limited to 'clang/lib/Lex/PPExpressions.cpp')
-rw-r--r--clang/lib/Lex/PPExpressions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPExpressions.cpp b/clang/lib/Lex/PPExpressions.cpp
index 3c0bf5c59c8..aea203f9df9 100644
--- a/clang/lib/Lex/PPExpressions.cpp
+++ b/clang/lib/Lex/PPExpressions.cpp
@@ -413,7 +413,7 @@ static bool EvaluateDirectiveSubExpr(llvm::APSInt &LHS, unsigned MinPrec,
// for shifts.
llvm::APSInt Res(LHS.getBitWidth());
if (Operator != tok::question && Operator != tok::lessless &&
- Operator != tok::greatergreater) {
+ Operator != tok::greatergreater && Operator != tok::comma) {
Res.setIsUnsigned(LHS.isUnsigned()|RHS.isUnsigned());
// If this just promoted something from signed to unsigned, and if the
// value was negative, warn about it.
OpenPOWER on IntegriCloud