diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-04-01 05:29:46 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-04-01 05:29:46 +0000 |
| commit | 977648ba897d2e74fcdcb8bddd19107dbde4634b (patch) | |
| tree | d873d703963cad50272749f9cbea49a8a379c5e5 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 99834003cd08680b52bbc049a3ae42d84d5e8230 (diff) | |
| download | clang-977648ba897d2e74fcdcb8bddd19107dbde4634b.tar.gz clang-977648ba897d2e74fcdcb8bddd19107dbde4634b.tar.bz2 clang-977648ba897d2e74fcdcb8bddd19107dbde4634b.tar.xz | |
MS ABI: Support mangling of return-types deducing to local types
The MS ABI forces us into catch-22 when it comes to functions which
return types which are local:
- A function is mangled with it's return type.
- A type is mangled with it's surrounding context.
Avoid this by mangling auto and decltype(autp) directly into the
function's return type. Using this mangling has the double advantage of
being compatible with the C++ standard without crashing the compiler.
N.B. For the curious, the MSVC mangling leads to collisions amongst
template functions and either crashes when faced with local types or is
otherwise incapable of returning them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
