]> granicus.if.org Git - clang/commitdiff
Fix Clang -Wsequence-point
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 14 May 2015 22:47:19 +0000 (22:47 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 14 May 2015 22:47:19 +0000 (22:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237401 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 0c5c23a3e2a6536b36add74b48a60629229ec8a8..a2b0fe8fc26534b444874962fc95464b4bfcf7c4 100644 (file)
@@ -108,7 +108,7 @@ DiagnoseAvailabilityOfDecl(Sema &S, NamedDecl *D, SourceLocation Loc,
 
   // 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();