[PATCH] D54055: CXXNameMangler::mangleFunctionParam: fix assertion

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 2 16:22:44 PDT 2018


jfb added a comment.

In https://reviews.llvm.org/D54055#1286196, @erik.pilkington wrote:

> Can you give an example of some code that triggered this with your patch applied? Even if it isn't a real reproducer right now, it would help to try to understand whats happening here.


Sure!

I have code like this: `getStaticDeclName(CGM, D)` where `D` is `vla` in:

  void foo(int size) {
    int vla[size];
    // ...
  }


Repository:
  rC Clang

https://reviews.llvm.org/D54055





More information about the cfe-commits mailing list