Demangler: Fix constructor cv qualifier handling
authorTamas Berghammer <tberghammer@google.com>
Wed, 24 May 2017 11:29:02 +0000 (11:29 +0000)
committerTamas Berghammer <tberghammer@google.com>
Wed, 24 May 2017 11:29:02 +0000 (11:29 +0000)
commite3852fa4052cef4715acebcffe2e18e2ff8b76b8
tree6684232260083de1584d3f991a2d508e058959a3
parent8bc9b88a241c617ad25f3d8d728d9b5581bd86a9
Demangler: Fix constructor cv qualifier handling

Previously if we parsed a constructor then we set parsed_ctor_dtor_cv
to true and never reseted it. This causes issue when a template argument
references a constructor (e.g. type of lambda defined inside a
constructor) as we will have the parsed_ctor_dtor_cv flag set what will
cause issues when parsing later arguments.

Differential Revision: https://reviews.llvm.org/D33385
libcxxabi change: https://reviews.llvm.org/rL303737

llvm-svn: 303738
llvm/lib/Demangle/ItaniumDemangle.cpp