]> granicus.if.org Git - clang/commit
[ms] Fix mangling of char16_t and char32_t to be compatible with MSVC.
authorNico Weber <nicolasweber@gmx.de>
Mon, 2 Jul 2018 12:31:20 +0000 (12:31 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 2 Jul 2018 12:31:20 +0000 (12:31 +0000)
commitbd0a790826076840e27115582dad5d493bc57073
treee6225dcc65239a0425a9daaeafa919efd14d44f9
parent4446de2c5a3f327eb1780dead5970ad4fa4bc5f0
[ms] Fix mangling of char16_t and char32_t to be compatible with MSVC.

MSVC limits char16_t and char32_t string literal names to 32 bytes of character
data, not to 32 characters. wchar_t string literal names on the other hand can
get up to 64 bytes of character data.

https://reviews.llvm.org/D48781

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336097 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/MicrosoftMangle.cpp
test/CodeGenCXX/mangle-ms-string-literals.cpp