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

    <tr>
        <th>Summary</th>
        <td>
            Assertion failed: isa<X>(Val) && "cast_if_present<Ty>() argument of incompatible type!"
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          google-mirror
      </td>
    </tr>
</table>

<pre>
    ```
Assertion failed: isa<X>(Val) && "cast_if_present<Ty>() argument of incompatible type!", file \llvm-15.0.5\llvm\include\llvm/Support/Casting.h, line 701
```

```
clang.exe!HandleAbort(int Sig) Line 414
        at \llvm-15.0.5\llvm\lib\Support\Windows\Signals.inc(414)
[External Code]
clang.exe!llvm::cast_if_present<llvm::LocalAsMetadata,llvm::ValueAsMetadata>(llvm::ValueAsMetadata * Val) Line 701
        at \llvm-15.0.5\llvm\include\llvm\Support\Casting.h(701)
clang.exe!llvm::cast_or_null<llvm::LocalAsMetadata,llvm::ValueAsMetadata>(llvm::ValueAsMetadata * Val) Line 725
        at \llvm-15.0.5\llvm\include\llvm\Support\Casting.h(725)
clang.exe!llvm::ValueAsMetadata::getLocalIfExists(llvm::Value * Local) Line 383
        at \llvm-15.0.5\llvm\include\llvm\IR\Metadata.h(383)
clang.exe!llvm::LocalAsMetadata::getIfExists(llvm::Value * Local) Line 452
        at \llvm-15.0.5\llvm\include\llvm\IR\Metadata.h(452)
clang.exe!llvm::findDbgUsers(llvm::SmallVectorImpl<llvm::DbgVariableIntrinsic *> & DbgUsers, llvm::Value * V) Line 111
        at \llvm-15.0.5\llvm\lib\IR\DebugInfo.cpp(111)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVdFumzAU_Rp4QUVgcAIPPLCk1SJ1L-uW7a0ycCGeDEa2Wdu_37UbkrZpo22qNsmC2Nc-95x7zUklm4fCW0T7Ea29qCy1BmW4HIKWcQGNl5QB18xLVt-95NIj2ZYJj-SBRxY48EVqps0tb29HBRoGgzu_PDxutfuY6qYelwPZBnyoZT8ywysBgXkYwSMxAnhkFbSYK_DoSoif_UVMwyik-xm-8JyYGpgXyNXNNI5SGfy1wuR86MKdBRF8gGAZxY9KXgh7dbEWDA_DvWXykQ2NgLJywBlHyje8sxKuLWwapzNOzsybVAWv8Dnzo6tvfGjknbZrvBuY0CGKQXgLR_I9Iv1weW9AYThYSatzfcrO4ScljtN6H2PXsmai1J_AsIYZhkU5xrBxEzyJuRa9GcbOlsG-19fP63q2AC969bQWT3qVWbRZ_xmZUt0OkxD_TCOh76kR0c5rPKFrFzswTuKmvbzn2uhTBY6323NgnmTJXzHffMbHnN-xtkjnWb9swMz6jwinlLwTYYt0nnCLH-G66r6isz0nd9MzIbZQG6k2_fj8muGBLVOcoVdtBqP4oHltdeCdsuYXHAHReF6Ruz1IjePf-nIercPpW0M1dZuhlWE9jsjYIhzcYnYwH4p4scjjaJFkqd8USZMnOfMNNwKK_2Dj_qREsTNm1LYU5ApHx81uqkLcjpO9dzvto5I_sOw45VpPgEW8onlMEn9XtE1UZXGbLyOWZ7SqlgToMs3rljKSZbD0BatA6AJdE5MOcBc4CPs_Qtc-L0hESBwTEmVJnqZhSpoagDYNXUKyYJGXRtBjSULLI5Sq81XhKGHFNQaFvcHHINMafRvApUN8NpmdVEUnZSfgoudKSeU7AoUT8AvF2Ddd">