[all-commits] [llvm/llvm-project] d733c8: [Orc] Fix error handling in `ORCPlatformSupport::i...

SahilPatidar via All-commits all-commits at lists.llvm.org
Sun Jul 6 23:08:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d733c8e5c584cfaf6c8650d3a40328c7bcfbe07c
      https://github.com/llvm/llvm-project/commit/d733c8e5c584cfaf6c8650d3a40328c7bcfbe07c
  Author: SahilPatidar <patidarsahil2001 at gmail.com>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

  Log Message:
  -----------
  [Orc] Fix error handling in `ORCPlatformSupport::initialize` (#144637)

Previously, `result` was checked before handling the `Error` returned by
`callSPSWrapper`. If `Error` was `success` but `result` indicated
failure, the original `Error` was silently dropped, triggering an
assertion failure for unhandled `Error`.

This patch ensures the `Error` is checked and returned before inspecting
`result`, preventing assertion failures.

Co-authored-by: Anutosh Bhat <andersonbhat491 at gmail.com>



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