aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2012-06-19 00:37:47 +0000
committerKaelyn Uhrain <rikka@google.com>2012-06-19 00:37:47 +0000
commit0d3317e0a2e0adb57ce8d075ebdcb41a3f939805 (patch)
tree2d666777b153f960802924874b142c2d93fc33ee /lib/Driver/Tools.cpp
parent3065cf9ecc883715edbd3bf875acb2cab531138e (diff)
Improve the error message when a function overload candidate is rejected
because it expects a reference and receives a non-l-value. For example, given: int foo(int &); template<int x> void b() { foo(x); } clang will now print "expects an l-value for 1st argument" instead of "no known conversion from 'int' to 'int &' for 1st argument". The change in wording (and associated code to detect the case) was prompted by comment #5 in PR3104, and should be the last bit of work needed for the bug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions