MS ABI: Mangle empty type parameter packs compatibly
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 5 Aug 2014 22:43:45 +0000 (22:43 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 5 Aug 2014 22:43:45 +0000 (22:43 +0000)
commit57fbc0c35fb143b0acce549f82e536ea4022634f
treed1cae5bccd309628a7894c3d71f25f2083adf56b
parent74a6816b33e40bee5a45d864268fb08f4ce46e05
MS ABI: Mangle empty type parameter packs compatibly

The MS mangling scheme apparently has separate manglings for type and
non-type parameter packs when they are empty.  Match template arguments
with parameters during mangling; check the parameter to see if it was
destined to hold type-ish things or nontype-ish things.

Differential Revision: http://reviews.llvm.org/D4792

llvm-svn: 214932
clang/lib/AST/MicrosoftMangle.cpp
clang/test/CodeGenCXX/mangle-ms-cxx11.cpp