tzik added a reviewer: rsmith.
tzik added a comment.

rsmith: PTAL. This is the previous attempt <https://reviews.llvm.org/D47067> 
plus a fix and a test.
The diff is SemaTemplateInstantiateDecl.cpp part that propagate disabled NRVO 
state to the instantiated local variable.
On the previous attempt, I left the local variable NRVO candidate on the 
template instnantiation, and following `computeNRVO` for the instantiated 
function template unexpectedly turned on NRVO for the candidate.


Repository:
  rC Clang

https://reviews.llvm.org/D47586



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to