]> granicus.if.org Git - clang/commit
If a member variable of reference type is bound to a temporary in its member initiali...
authorAnders Carlsson <andersca@mac.com>
Fri, 6 Nov 2009 04:19:02 +0000 (04:19 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 6 Nov 2009 04:19:02 +0000 (04:19 +0000)
commit5e1b91875c275f0ec50d3680afbac150d684fdba
tree43a2e1776f807bcf2f5132198b3fa0fd6d163437
parent1faf67478c6d423880726a327c737db13b8d9f0b
If a member variable of reference type is bound to a temporary in its member initializer it needs to be destroyed at the end of the constructor.

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