diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2013-12-04 09:01:55 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2013-12-04 09:01:55 +0000 |
| commit | 089cd19a554a9d37d89e674a65e095646104d768 (patch) | |
| tree | 63abf143e4e8877edfaf68a69e74f606196e0e4f /lib/CodeGen/CGExprCXX.cpp | |
| parent | 824fb3f1dcbee7bdbb83d2b0fe497dfb9b4411a7 (diff) | |
| download | clang-089cd19a554a9d37d89e674a65e095646104d768.tar.gz clang-089cd19a554a9d37d89e674a65e095646104d768.tar.bz2 clang-089cd19a554a9d37d89e674a65e095646104d768.tar.xz | |
Sema: Propagate the mangling number into instantiations
We would lose track of the mangling number assigned to the original
declaration which would cause us to create manglings that didn't match
the Itanium C++ specification.
e.g. Two static fields with the same name inside of a function template
would receive the same mangling with LLVM fixing up the second field so
they wouldn't collide. This would create an incompatibility with other
compilers following the Itanium ABI.
I've confirmed that the new mangling is identical to the ones generated
by icc and gcc.
N.B. This was uncovered while working on Microsoft mangler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprCXX.cpp')
0 files changed, 0 insertions, 0 deletions
