r237401 - Fix Clang -Wsequence-point

David Blaikie dblaikie at gmail.com
Thu May 14 15:47:19 PDT 2015


Author: dblaikie
Date: Thu May 14 17:47:19 2015
New Revision: 237401

URL: http://llvm.org/viewvc/llvm-project?rev=237401&view=rev
Log:
Fix Clang -Wsequence-point

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=237401&r1=237400&r2=237401&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu May 14 17:47:19 2015
@@ -108,7 +108,7 @@ DiagnoseAvailabilityOfDecl(Sema &S, Name
 
   // For typedefs, if the typedef declaration appears available look
   // to the underlying type to see if it is more restrictive.
-  while (const TypedefNameDecl *TD = TD = dyn_cast<TypedefNameDecl>(D)) {
+  while (const TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(D)) {
     if (Result == AR_Available) {
       if (const TagType *TT = TD->getUnderlyingType()->getAs<TagType>()) {
         D = TT->getDecl();





More information about the cfe-commits mailing list