[PATCH] D49965: [MS Demangler] Demangle symbols in function local scopes

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 29 19:32:24 PDT 2018


majnemer added inline comments.


================
Comment at: llvm/lib/Demangle/MicrosoftDemangle.cpp:432
+  Candidate = Candidate.dropBack();
+
+  // An encoded number starts with B-P and all subsequent digits are in A-P.
----------------
zturner wrote:
> majnemer wrote:
> > What prohibits the string from being empty after this point?
> I tested it out and it seems like it could be.  At least, `undname` will turn `?M@?@??L@@YAHXZ at 4HA` into this: 
> 
> ```
> int `int __cdecl L(void)'::`0'::M
> ```
> 
> But I've never seen this kind of mangled name generated in practice.  Do you know how to get it to occur?
AFAIK, it is not possible to generate.


https://reviews.llvm.org/D49965





More information about the llvm-commits mailing list