Skip to content
Commit 222cf0ef authored by Douglas Gregor's avatar Douglas Gregor
Browse files

Recognize when the named return value optimization applies in a

"return" statement and mark the corresponding CXXConstructExpr as
elidable. Teach CodeGen that eliding a temporary is different from
eliding an object construction.

This is just a baby step toward NRVO.

llvm-svn: 103849
parent 36d4d154
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment