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

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 29 19:10:29 PDT 2018


zturner 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.
----------------
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?


https://reviews.llvm.org/D49965





More information about the llvm-commits mailing list