OSDN Git Service

[msabi] Mangle a template argument referring to array-to-pointer decay
authorRichard Smith <richard@metafoo.co.uk>
Tue, 19 Jan 2021 22:37:10 +0000 (14:37 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Tue, 19 Jan 2021 22:38:07 +0000 (14:38 -0800)
commit18e093faf726d15f210ab4917142beec51848258
tree227dc11843bb1d5f09c0f4013e2bf448a839a458
parente75a4b6ea9e950181049f1c2f8a78835754852fe
[msabi] Mangle a template argument referring to array-to-pointer decay
applied to an array the same as the array itself.

This follows MS ABI, and corrects a regression from the implementation
of generalized non-type template parameters, where we "forgot" how to
mangle this case.
clang/lib/AST/MicrosoftMangle.cpp
clang/test/CodeGenCXX/mangle-ms-templates.cpp