<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/120856>120856</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb] A typo in the detection of `this` arguments?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          SingleAccretion
      </td>
    </tr>
</table>

<pre>
    I've encountered what seems like a bug in this code:

https://github.com/llvm/llvm-project/blob/fd784726db70a5155594c32ee839b8807fafd87d/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp#L3140-L3147

In my case, the entry for "this" looked like this:
```
0x000001a4: DW_TAG_formal_parameter
                    DW_AT_artificial    (0x01)
 DW_AT_type     (0x000001e0 "WebAssemblyPtrWrapper<DerivedType>")

...

0x000001e0: DW_TAG_structure_type
 DW_AT_name     ("WebAssemblyPtrWrapper<DerivedType>")
 DW_AT_byte_size        (0x04)
```
And was still picked up, despite the seeming intention of filtering out non-pointer arguments.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU8uO5CYU_Rq8QW1h8HPhhdMVRyNl0Uq3VMsSj2sXGQwW4O5xvj7CVZWaRTaDkDEX7utwDg9BzxagR9VvqDplfItX5_t3bWcDg5QeonY2E07t_TdEm0_AYKXbbAQPCn9decQBYAnY6O-AORbbjLXF8aoDlk4BYgMiaV5jXEPa0RHRcdbxuolcugXR0ZjPx_Kyevc3yIjoKIwTiI6TatqyobUSDeFVUVVVV0pGAVrWibYlzcQn1TbqCKCSR3Cbl4Do-Ga2WduA6Pi-L8KZUZtkPp2Hv8bHOrx_vHEfwL8abudcriui7E9WlOQlfZtb8d8sXnYseQBEX3G8JhSi3_HkPEaUpm4Rpdg49x3UDYrDdmu-JvdJBvKDpFHwErEBn86Xj-GPy-T8ws1l5Z4vEMEjMuD_GafzZfi4cB_1pKXmBpEO0Zb8IAWiXfK5XYj7Cv8dHcmApCLPIIYQYBFmf4v-7Pm6gkfs9QRef4L6SG7sd0TpLRoiQ57nt59noJ-qDtFvMm4e7hkf-S1f7vl_Pek9hNgjXIL-59lHeS_qJygHq_AXDzhEbQxetUzQb2t6IAVh1RGOh0rs1DaRMoJNZMZuwpM2EXwyuy1i6-zL6tIFj7mftwVsDHmmeqY61vEM-qJhZVtUbUeya0-mtlRtpxRrSEXk1DS1YIyXnayEmKYu0z0ltCwoLWhRtAXJa8qJYAx413UNqytUEli4NnmifO78nOkQNugLStqqzgwXYMIhSUotfOHjNIFUnTLfHzoR2xxQSYwOMTzDRB3NoeVDCtUJDzjuq7spErCCCPKBAarJwdGaPJtGbMw2b_pfFutRYVLavYXPnv4bAAD__4KKWoU">