Skip to content
Commit 290c93ec authored by Douglas Gregor's avatar Douglas Gregor
Browse files

Implement a simple form of the C++ named return value optimization for

return statements. We perform NRVO only when all of the return
statements in the function return the same variable. Fixes some link
failures in Boost.Interprocess (which is relying on NRVO), and
probably improves performance for some C++ applications.

llvm-svn: 103867
parent 84ce2908
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