summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-21 02:43:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-21 02:43:05 +0000
commit641f7d196069926f55c63fa7d32db08eb2a21559 (patch)
treea1fd40e2912c54c25ec46c5f8a8164f5d6718297
parent5ab128b02d3b10413fb30738ec9f401dcfb47252 (diff)
gcc told me to add these.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79589 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
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<CXXMethodDecl>(*Func))
+ if ((Method = dyn_cast<CXXMethodDecl>(*Func)))
AddMethodCandidate(Method, ObjectArg, Args, NumArgs, CandidateSet,
/*SuppressUserConversions=*/false);
else