summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.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
commit9ea8f7e6c53fa6b6fbfab811578ec0e16153707f (patch)
treec628e3dbcbec3682bae999f455bf2eb53fb3be6b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent9dcc0325de8df0624591b0501ec8f6409d0a7777 (diff)
downloadbcm5719-llvm-9ea8f7e6c53fa6b6fbfab811578ec0e16153707f.tar.gz
bcm5719-llvm-9ea8f7e6c53fa6b6fbfab811578ec0e16153707f.zip
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. llvm-svn: 158691
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud