diff options
| author | Yang Fan <nullptr.cpp@gmail.com> | 2020-11-10 15:09:06 -0500 |
|---|---|---|
| committer | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2020-11-10 15:11:07 -0500 |
| commit | 703038b35a864d06e1926237c1568a430417b0b4 (patch) | |
| tree | c25377f1126e847d4dc7e3105d01aa049f9be91a /llvm/lib/CodeGen/SafeStack.cpp | |
| parent | 6cb1c0cae0dfcdeabb7d764b1cb3be637a227717 (diff) | |
| download | llvm-703038b35a864d06e1926237c1568a430417b0b4.zip llvm-703038b35a864d06e1926237c1568a430417b0b4.tar.gz llvm-703038b35a864d06e1926237c1568a430417b0b4.tar.bz2 | |
[Sema] Fix volatile check when testing if a return object can be implicitly moved
In C++11 standard, to become implicitly movable, the expression in return
statement should be a non-volatile automatic object. CWG1579 changed the rule
to require that the expression only needs to be an automatic object. C++14
standard and C++17 standard kept this rule unchanged. C++20 standard changed
the rule back to require the expression be a non-volatile automatic object.
This should be a typo in standards, and VD should be non-volatile.
Differential Revision: https://reviews.llvm.org/D88295
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions
