]> granicus.if.org Git - llvm/commit
Demangle: avoid butchering parameter type
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 24 Jan 2017 18:52:19 +0000 (18:52 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 24 Jan 2017 18:52:19 +0000 (18:52 +0000)
commit60b4e66e58558c471aa838b6f8ef2cfb6978395f
tree0ef006277c51334100af612320af96116b049ab3
parentfb1b2100203a7b40b7d2df6b20a2b77597b44edf
Demangle: avoid butchering parameter type

When demangling a CV-qualified function type with a final parameter with
a reference type, we would insert the CV qualification on the parameter
rather than the function, and in the process adjust the insertion point
by one extra, splitting the type name.  This avoids doing so, even
though the attribution is still incorrect.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292965 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Demangle/ItaniumDemangle.cpp