MS ABI: Mangle null pointer-to-member-functions compatibly
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 11 Jun 2014 04:55:08 +0000 (04:55 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 11 Jun 2014 04:55:08 +0000 (04:55 +0000)
commit6a729c64e0eb168e26f6377002b884f748d48333
tree684a70acdaeadf4d8ff518551b4eddece28265e8
parentace0080a4a0e95bad681f5d5c1bcca9d43a5f05b
MS ABI: Mangle null pointer-to-member-functions compatibly

Summary:
Previously, we would mangle nullptr pointer-to-member-functions in class
templates with a mangling we invented because contemporary versions of
MSVC would crash when trying to compile such code.

However, VS "14" can successfully compile these sorts of template
instantiations.  This commit updates our mangling to be compatible with
theirs.

Reviewers: rnk

Reviewed By: rnk

Subscribers: cfe-commits

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

llvm-svn: 210637
clang/lib/AST/MicrosoftMangle.cpp
clang/test/CodeGenCXX/mangle-ms-templates-memptrs-2.cpp