[cfe-commits] r50631 - /cfe/trunk/lib/Lex/PPExpressions.cpp

Chris Lattner sabre at nondot.org
Sun May 4 16:38:48 PDT 2008


Author: lattner
Date: Sun May  4 18:38:48 2008
New Revision: 50631

URL: http://llvm.org/viewvc/llvm-project?rev=50631&view=rev
Log:
Neil points out that commas don't do UACs either.

Modified:
    cfe/trunk/lib/Lex/PPExpressions.cpp

Modified: cfe/trunk/lib/Lex/PPExpressions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPExpressions.cpp?rev=50631&r1=50630&r2=50631&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/PPExpressions.cpp (original)
+++ cfe/trunk/lib/Lex/PPExpressions.cpp Sun May  4 18:38:48 2008
@@ -413,7 +413,7 @@
     // 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.





More information about the cfe-commits mailing list