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

    <tr>
        <th>Summary</th>
        <td>
            lli crashed on simple code
        </td>
    </tr>

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

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

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

<pre>
    I just played with IR and created such simple example. Save it to file with name "crash_hello.ll" and run `lli crash_hello.ll` (in linux console).
```
; ModuleID = 'main'
source_filename = "main"

declare i32 @puts(ptr)

define i32 @main() {
entrypoint:
  %0 = call i32 @puts([12 x i8] c"Hello World\00")
  ret i32 0
}
```
What I expected: it shows me "Hello World" or says something about an invalid syntax.
What I have:
```
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: lli bag/crash_hello.ll
 #0 0x00007f03f58bd4e3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/src/debug/llvm-core/llvm-19.1.7/llvm/lib/Support/Unix/Signals.inc:727:3
 #1 0x00007f03f58bab14 llvm::sys::RunSignalHandlers() /usr/src/debug/llvm-core/llvm-19.1.7/llvm/lib/Support/Signals.cpp:105:20
 #2 0x00007f03f58baf26 SignalHandler /usr/src/debug/llvm-core/llvm-19.1.7/llvm/lib/Support/Unix/Signals.inc:413:1
 #3 0x00007f03f487c5a0 __restore_rt libc_sigaction.c:0:0
```
llvm version - 18, 19 and maybe 14-17 too.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0lE-PozgTxj-Ncyk1MmUIyYEDPZloWu-7Umt6d-cYGVMBzxgb2SadfPuVSWe6J9rTajdKBAr15_cUj0uGoHtLVLPykZW7lZzj4Hz9P_en7PS4al13qZ_g-xwiTEZeqINXHQd4-grSdqA8yUgdhFkNEPQ4GQI6y3TN4EWeCHSE6OC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