From: David Blaikie Date: Thu, 14 May 2015 22:47:19 +0000 (+0000) Subject: Fix Clang -Wsequence-point X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ded2fc585b8010fcafc6da37c52704ef3cb55436;p=clang Fix Clang -Wsequence-point git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237401 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 0c5c23a3e2..a2b0fe8fc2 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -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(D)) { + while (const TypedefNameDecl *TD = dyn_cast(D)) { if (Result == AR_Available) { if (const TagType *TT = TD->getUnderlyingType()->getAs()) { D = TT->getDecl();