]> granicus.if.org Git - clang/commit
When returning from a function that has a reference return type, use
authorDouglas Gregor <dgregor@apple.com>
Wed, 24 Mar 2010 23:14:04 +0000 (23:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 24 Mar 2010 23:14:04 +0000 (23:14 +0000)
commit33fd1fc1814a5573c972840d49317989e20deace
treefdfb07130c655a121ebccb0b5d1387e56aec74f1
parentf3eaf45bf3ebef039c99c1e9efb05b477b2a07aa
When returning from a function that has a reference return type, use
EmitReferenceBindingToExpr() rather than assuming we have an
lvalue. This is just the lowest hanging fruit for PR6024, which still
requires a bit of work.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99447 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
test/CodeGenCXX/references.cpp