]> granicus.if.org Git - clang/commitdiff
Neil points out that commas don't do UACs either.
authorChris Lattner <sabre@nondot.org>
Sun, 4 May 2008 23:38:48 +0000 (23:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 May 2008 23:38:48 +0000 (23:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50631 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPExpressions.cpp

index 3c0bf5c59c876249c71d0a1edcf6681add977b5b..aea203f9df9cc512298b3707e76625c9d69960b9 100644 (file)
@@ -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.