summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-12-04 09:01:55 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-12-04 09:01:55 +0000
commit089cd19a554a9d37d89e674a65e095646104d768 (patch)
tree63abf143e4e8877edfaf68a69e74f606196e0e4f /lib/CodeGen/CodeGenFunction.cpp
parent824fb3f1dcbee7bdbb83d2b0fe497dfb9b4411a7 (diff)
downloadclang-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/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions