From: Daniel Dunbar Date: Fri, 21 Aug 2009 02:43:05 +0000 (+0000) Subject: gcc told me to add these. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=641f7d196069926f55c63fa7d32db08eb2a21559;p=clang gcc told me to add these. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79589 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index df92634745..21196d9cfa 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -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(*Func)) + if ((Method = dyn_cast(*Func))) AddMethodCandidate(Method, ObjectArg, Args, NumArgs, CandidateSet, /*SuppressUserConversions=*/false); else