Fixed plausible overloads location.

llvm-svn: 144700
This commit is contained in:
Abramo Bagnara 2011-11-15 21:43:28 +00:00
parent b89a58df96
commit dc1646dc2b
2 changed files with 3 additions and 3 deletions

View File

@ -968,7 +968,7 @@ static void noteOverloads(Sema &S, const UnresolvedSetImpl &Overloads,
}
NamedDecl *Fn = (*It)->getUnderlyingDecl();
S.Diag(Fn->getLocStart(), diag::note_possible_target_of_call);
S.Diag(Fn->getLocation(), diag::note_possible_target_of_call);
++ShownOverloads;
}

View File

@ -185,8 +185,8 @@ struct Class : BaseClass
template <class T>
struct NestedClassTemplate {};
template <class T> // expected-note{{possible target for call}}
static int& NestedFuncTemplate() { return variable; }
template <class T>
static int& NestedFuncTemplate() { return variable; } // expected-note{{possible target for call}}
template <class T>
int& NestedMemfunTemplate() { return variable; }