diff options
author | Taiju Tsuiki <tzik@google.com> | 2018-06-19 04:39:07 +0000 |
---|---|---|
committer | Taiju Tsuiki <tzik@google.com> | 2018-06-19 04:39:07 +0000 |
commit | b000a8860e9ec26f4a2834dbeaba44cd27025306 (patch) | |
tree | acb0e6018e9e3cfc7fc0c3efaf2eace9de21fb69 /lldb/packages/Python/lldbsuite/support/sockutil.py | |
parent | c2965214efbd35ed54e08cce042e8eed778646aa (diff) | |
download | bcm5719-llvm-b000a8860e9ec26f4a2834dbeaba44cd27025306.tar.gz bcm5719-llvm-b000a8860e9ec26f4a2834dbeaba44cd27025306.zip |
Update NRVO logic to support early return (Attempt 2)
Summary:
This is the second attempt of r333500 (Update NRVO logic to support early return).
The previous one was reverted for a miscompilation for an incorrect NRVO set up on templates such as:
```
struct Foo {};
template <typename T>
T bar() {
T t;
if (false)
return T();
return t;
}
```
Where, `t` is marked as non-NRVO variable before its instantiation. However, while its instantiation, it's left an NRVO candidate, turned into an NRVO variable later.
Reviewers: rsmith
Reviewed By: rsmith
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D47586
llvm-svn: 335019
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support/sockutil.py')
0 files changed, 0 insertions, 0 deletions