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

    <tr>
        <th>Summary</th>
        <td>
            Corrupted double-linked list
        </td>
    </tr>

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

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

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

<pre>
    ![image](https://github.com/llvm/llvm-project/assets/85003861/9c811a1f-105f-4b73-826a-436ed0b3650b)

I was running some code and uh I got this error and it said to submit a bug report - idk what went wrong with it or anything but this is my bug report
Also this is llvm-14

I attatched the file I ran with lli and the crash backtrace
[graphs.ll.txt](https://github.com/user-attachments/files/15875314/graphs.ll.txt)
[bt.txt](https://github.com/user-attachments/files/15875391/bt.txt)

Stack dump from a second run:
0.      Program arguments: lli graphs.ll
 #0 0x00007f0f5a7ffd01 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3fd01)
 #1 0x00007f0f5a7fda3e llvm::sys::RunSignalHandlers() (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe3da3e)
 #2 0x00007f0f5a800236 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0xe40236)
 #3 0x00007f0f594a6520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007f0f594fa9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #5 0x00007f0f594a6476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #6 0x00007f0f5948c7f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #7 0x00007f0f594ed676 (/lib/x86_64-linux-gnu/libc.so.6+0x89676)
 #8 0x00007f0f59504cfc (/lib/x86_64-linux-gnu/libc.so.6+0xa0cfc)
 #9 0x00007f0f595059a8 (/lib/x86_64-linux-gnu/libc.so.6+0xa19a8)
#10 0x00007f0f59507bdb (/lib/x86_64-linux-gnu/libc.so.6+0xa3bdb)
#11 0x00007f0f59509262 __libc_malloc (/lib/x86_64-linux-gnu/libc.so.6+0xa5262)
#12 0x00007f0f5984298c operator new(unsigned long) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xae98c)
#13 0x00007f0f5c1fca00 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283ca00)
#14 0x00007f0f5c1fc8f9 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283c8f9)
#15 0x00007f0f5c1fb925 (/lib/x86_64-linux-gnu/libLLVM-14.so.1+0x283b925)
#16 0x0000000000418144 runOrcJIT(char const*) (/usr/lib/llvm-14/bin/lli+0x418144)
#17 0x0000000000412cc8 main (/usr/lib/llvm-14/bin/lli+0x412cc8)
#18 0x00007f0f5948dd90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#19 0x00007f0f5948de40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#20 0x000000000040fe15 _start (/usr/lib/llvm-14/bin/lli+0x40fe15)
Aborted
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysls9u4zYQxp-GvhA2yBEpkQcf7F0YTbFFF91FrwZFUhIb_TFIap28fUF544RugcZBdYhiU_P7Ps54RlQhuHa0dov4HvHPKzXHbvJbNcyPHV3Vk3neIqCI792gWov4ZwSii_EUULFDcEBwaF3s5nqjpwHBoe9_vNzWJz_9ZXVEcFAh2BgQHAQnpBAlRXCQWlCqaLOmhDdrVlfFWkCp1qworSF1UXJSI5CIfEZkd_n7gM8qYD-PoxtbHKbBYj0Zi9Vo8NzhB9xOEcfOBWy9n_zyvYs4KGdwnHCY68FFrHA9t9jb0-QjXmNnHvG5UxGf7Rjx2U9ji88udilyYTzHLsnV80-2C3h4fsO4eNv1YbquL9unLPeuYlRRd9bg2FncuN7iB-zVeFHre7f4TWvaq9DhWunH6JW2PzF833p16sKm7zf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