diff options
author | Chris Lattner <sabre@nondot.org> | 2008-05-04 23:38:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-05-04 23:38:48 +0000 |
commit | 463ec609931b1ae9cdf71f2d1ac37237b266344d (patch) | |
tree | 96c127a00cc9a3da32e047b972443b61395af741 /lib/Lex/PPExpressions.cpp | |
parent | 9189156429c06eea3f75cb01646e2afd78000f39 (diff) |
Neil points out that commas don't do UACs either.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPExpressions.cpp')
-rw-r--r-- | lib/Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPExpressions.cpp b/lib/Lex/PPExpressions.cpp index 3c0bf5c59c..aea203f9df 100644 --- a/lib/Lex/PPExpressions.cpp +++ b/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. |