Sema::MaybeBindToTemporary() shouldn't treat any expression returning
commit45a83dc7c4dd297d92dfccbb7d3fc6a570a294bb
authorDouglas Gregor <doug.gregor@gmail.com>
Tue, 8 Feb 2011 02:14:35 +0000 (8 02:14 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Tue, 8 Feb 2011 02:14:35 +0000 (8 02:14 +0000)
tree4e5fc697c1c96ed8bc105e826374cfe7c5dd4a13
parent4f10986ab26d7204e58f7d10e60d4bf474b6b0a7
Sema::MaybeBindToTemporary() shouldn't treat any expression returning
a glvalue as a temporary. Previously, we were enumerating all of the
cases that coul return glvalues and might be called with
Sema::MaybeBindToTemporary(), but that was gross and we missed the
Objective-C property reference case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125070 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/SemaObjCXX/properties.mm [new file with mode: 0644]