]> granicus.if.org Git - clang/commit
[MS ABI] Treat ConstantArrayType like IncompleteArrayType in args
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 23 Apr 2015 05:21:20 +0000 (05:21 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 23 Apr 2015 05:21:20 +0000 (05:21 +0000)
commit24003c1df297a7aabc667f616e8d7e1481a305c0
treebc34642fe4f372921bf12b2dee5d8c917af04c36
parentb2b3c4751bd86c1998c854026594c21b251f4da2
[MS ABI] Treat ConstantArrayType like IncompleteArrayType in args

Type backreferences for arguments use the DecayedType's original type.
Because of this, arguments with the same canonical type with the same
mangling would not backreference each other if one was a
ConstantArrayType while the other was an IncompleteArrayType.  Solve
this by canonicalizing the ConstantArrayType to a suitable
IncompleteArrayType.

This fixes PR23325.

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