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

    <tr>
        <th>Summary</th>
        <td>
            llvm error:unresolved symbol type
        </td>
    </tr>

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

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

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

<pre>
    I'm encountering an issue while using LLVM to compile a C++ file. The problem manifests differently depending on the compilation mode:
Release mode: All symbol types are recognized, and the compilation and execution work fine.
Debug mode: The compilation fails with an "Unresolved symbol type" error, leading to a runtime failure.
Here is the error log from the debug mode compilation:

The error log shows:
![image](https://github.com/user-attachments/assets/e70b94a3-7521-4d1a-8e84-2f6215bca45c)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8UsuOm0AQ_Jrh0rI1NGDsAwd7LSuRNpdok3vDNDDJMGPNYx3n6yOw95GHcuFRTFcV1UUh6MEyN6I6iOqYUYqj842lmLzR3chZ69S1-SiwnoBt55KN7LUdgCzoEBLDZdSGIYUZfHz8-gmig85N5xkleBB4EHiAXhtew9PIcPauNTzBRFb3HGIApfuePdtorqD4zFbNXM5CHPlORVE7C5NTLIq9kEch95_ZMAV-AWFvDITr1DoD8XrmAOQZPHdusPonK4EPQFb9xTlj_IO7tLxdnP8Ovba8vokcuU3Dq8TTH7M9aRPgouM4xyEQv1jPwZlnVu-tCERg752fPRim5feiAwKfbNQTL0TJv4h-YM-gw2J1mQPjBui9mxZIvXp6b-Y1l9v16bfZMLpLeDuBuagOeqKBRXUUuB1jPC-f8STwNOg4pnbduUngKQX2K4qRunFiG4PAE4XAywPXst2VVKzqCvNVqXJabXlbrrDfYF61HZVVJ3B3E81UU6hdsaOMm7xGlNtqI7fZ2JRU044lck6kcCOrvJSSil4VfcG7gjLdoMRS1ljnhdyUm7WSUhU5l2XXVnXdkSglT6TN2pjnae38kC3NbHIpt3WeGWrZhKXhiJYvt94KxLnwvpmHVm0agiil0SGGN5qoo-HlwH1_xT79c8NZ8qb5T4ozxf22Onv3jbso8LT4mIO8G31u8FcAAAD__8IILGM">