llvm.org GIT mirror llvm / b762e5b
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303738 91177308-0d34-0410-b5e6-96231b3b80d8 Tamas Berghammer 2 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
40294029 save_value sb(db.tag_templates);
40304030 if (db.encoding_depth > 1)
40314031 db.tag_templates = true;
4032 save_value sp(db.parsed_ctor_dtor_cv);
4033 db.parsed_ctor_dtor_cv = false;
40324034 switch (*first) {
40334035 case 'G':
40344036 case 'T':