]> granicus.if.org Git - clang/commitdiff
gcc told me to add these.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 21 Aug 2009 02:43:05 +0000 (02:43 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 21 Aug 2009 02:43:05 +0000 (02:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79589 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index df92634745bc989562bcb3c368dcc0b20c19fc5a..21196d9cfa86d5ef8722bdc39d935ae0f952ef89 100644 (file)
@@ -4330,7 +4330,7 @@ Sema::BuildCallToMemberFunction(Scope *S, Expr *MemExprE,
                 Func = Ovl->function_begin(),
              FuncEnd = Ovl->function_end();
            Func != FuncEnd; ++Func) {
-        if (Method = dyn_cast<CXXMethodDecl>(*Func))
+        if ((Method = dyn_cast<CXXMethodDecl>(*Func)))
           AddMethodCandidate(Method, ObjectArg, Args, NumArgs, CandidateSet, 
                              /*SuppressUserConversions=*/false);
         else