From: Chris Lattner Date: Sun, 4 May 2008 23:38:48 +0000 (+0000) Subject: Neil points out that commas don't do UACs either. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=463ec609931b1ae9cdf71f2d1ac37237b266344d;p=clang 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 --- 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.