commit | 3c9034cb7ff1d6c1e4ecd1b44c98f553df013c7c | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Sat May 15 00:13:29 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Sat May 15 00:13:29 2010 +0000 |
tree | 51a260b4bf4837766cfd3d2f06de837b8ffc08df | |
parent | 67d438d39a1cc37c372a2684dc354f58d0169bb1 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103849 91177308-0d34-0410-b5e6-96231b3b80d8