[cfe-commits] r144700 - in /cfe/trunk: lib/Sema/Sema.cpp test/SemaCXX/expression-traits.cpp
Abramo Bagnara
abramo.bagnara at gmail.com
Tue Nov 15 13:43:29 PST 2011
Author: abramo
Date: Tue Nov 15 15:43:28 2011
New Revision: 144700
URL: http://llvm.org/viewvc/llvm-project?rev=144700&view=rev
Log:
Fixed plausible overloads location.
Modified:
cfe/trunk/lib/Sema/Sema.cpp
cfe/trunk/test/SemaCXX/expression-traits.cpp
Modified: cfe/trunk/lib/Sema/Sema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.cpp?rev=144700&r1=144699&r2=144700&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.cpp (original)
+++ cfe/trunk/lib/Sema/Sema.cpp Tue Nov 15 15:43:28 2011
@@ -968,7 +968,7 @@
}
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;
}
Modified: cfe/trunk/test/SemaCXX/expression-traits.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/expression-traits.cpp?rev=144700&r1=144699&r2=144700&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/expression-traits.cpp (original)
+++ cfe/trunk/test/SemaCXX/expression-traits.cpp Tue Nov 15 15:43:28 2011
@@ -185,8 +185,8 @@
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; }
More information about the cfe-commits
mailing list