[all-commits] [llvm/llvm-project] 65990d: [lli] Fix crash with --no-process-syms on MinGW (#...

jeremyd2019 via All-commits all-commits at lists.llvm.org
Fri Aug 1 18:16:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65990d61486c44186daec8e3c0831a32780b3e1d
      https://github.com/llvm/llvm-project/commit/65990d61486c44186daec8e3c0831a32780b3e1d
  Author: jeremyd2019 <github at jdrake.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/tools/lli/lli.cpp

  Log Message:
  -----------
  [lli] Fix crash with --no-process-syms on MinGW (#151386)

In this case, `J->getProcessSymbolsJITDylib()` returns a NULL pointer.
In order to make sure `__main` is still defined, add the symbol to
`J->getMainJITDylib()` instead in that case. This returns a reference
and thus cannot be NULL.

Fixes #143080



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list